fix: update portal links to relative, use php-apache, add mariadb db service, and update Gitea URL
This commit is contained in:
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM php:8.2-apache
|
||||
|
||||
# Install PHP extensions & enable Apache modules
|
||||
RUN docker-php-ext-install mysqli pdo pdo_mysql \
|
||||
&& a2enmod rewrite headers
|
||||
|
||||
# Allow .htaccess overrides and enable rewrite for all directories
|
||||
RUN sed -i 's|AllowOverride None|AllowOverride All|g' /etc/apache2/apache2.conf \
|
||||
&& echo "ServerName localhost" >> /etc/apache2/apache2.conf
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /var/www/html
|
||||
|
||||
# Copy application files
|
||||
COPY . /var/www/html/
|
||||
|
||||
# Set proper permissions for web server
|
||||
RUN chown -R www-data:www-data /var/www/html \
|
||||
&& find /var/www/html -type d -exec chmod 755 {} \; \
|
||||
&& find /var/www/html -type f -exec chmod 644 {} \;
|
||||
|
||||
EXPOSE 80
|
||||
30
docker-compose.yml
Normal file
30
docker-compose.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8084:80"
|
||||
environment:
|
||||
DB_HOST: db
|
||||
DB_USER: root
|
||||
DB_PASS: miaDatabase123
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
||||
db:
|
||||
image: mariadb:11.4
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MARIADB_ROOT_PASSWORD: miaDatabase123
|
||||
volumes:
|
||||
- db_data_mia:/var/lib/mysql
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "mariadb-admin ping -h localhost -uroot -pmiaDatabase123 --silent"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
start_period: 30s
|
||||
|
||||
volumes:
|
||||
db_data_mia:
|
||||
@@ -311,7 +311,7 @@
|
||||
dan Pengambil Kepijakan) serta visualisasi peta heatmap dan sebaran penduduk miskin secara
|
||||
langsung.</p>
|
||||
</div>
|
||||
<a href="http://y4coccc4kkocggw8wcgow0wc.203.24.51.230.sslip.io" class="btn-link btn-primary">
|
||||
<a href="poverty-map/" class="btn-link btn-primary">
|
||||
Buka Aplikasi <span>→</span>
|
||||
</a>
|
||||
</div>
|
||||
@@ -324,7 +324,7 @@
|
||||
<p>Visualisasi sebaran stasiun pengisian bahan bakar umum (SPBU) di wilayah Pontianak dan sekitarnya
|
||||
menggunakan layer kontrol interaktif peta Leaflet.js.</p>
|
||||
</div>
|
||||
<a href="http://pogc8wgggk4oow0ck8wccwsw.203.24.51.230.sslip.io" class="btn-link btn-secondary">
|
||||
<a href="spbu_layer/" class="btn-link btn-secondary">
|
||||
Buka Project <span>→</span>
|
||||
</a>
|
||||
</div>
|
||||
@@ -337,7 +337,7 @@
|
||||
<p>Peta visualisasi infrastruktur jalan tanah menggunakan pemetaan garis polylines serta poligon
|
||||
kecamatan untuk menganalisis perkembangan jalan daerah.</p>
|
||||
</div>
|
||||
<a href="http://t00c8cc4ssc804soskcso80k.203.24.51.230.sslip.io" class="btn-link btn-secondary">
|
||||
<a href="jalan_tanah/" class="btn-link btn-secondary">
|
||||
Buka Project <span>→</span>
|
||||
</a>
|
||||
</div>
|
||||
@@ -347,7 +347,7 @@
|
||||
<!-- Footer -->
|
||||
<footer>
|
||||
<p>© 2026 Informatika Universitas Tanjungpura. All rights reserved.</p>
|
||||
<p>Kode Sumber tersimpan di Gitea: <a href="REPLACE_WITH_GITEA_REPO_URL" class="repo-link">Repository Gitea
|
||||
<p>Kode Sumber tersimpan di Gitea: <a href="https://git.ifuntanhub.dev/miaaurl/UAS_WebGIS_MiaAurelia_D1041231036" class="repo-link">Repository Gitea
|
||||
Project</a></p>
|
||||
</footer>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user