From 44d9d29434d00a712dab217e1e73275d86fb2db3 Mon Sep 17 00:00:00 2001
From: root
Date: Sat, 13 Jun 2026 07:02:24 +0000
Subject: [PATCH] fix: update portal links to relative, use php-apache, add
mariadb db service, and update Gitea URL
---
Dockerfile | 22 ++++++++++++++++++++++
docker-compose.yml | 30 ++++++++++++++++++++++++++++++
index.html | 8 ++++----
3 files changed, 56 insertions(+), 4 deletions(-)
create mode 100644 Dockerfile
create mode 100644 docker-compose.yml
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..6b5a89b
--- /dev/null
+++ b/Dockerfile
@@ -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
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..5d446d6
--- /dev/null
+++ b/docker-compose.yml
@@ -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:
diff --git a/index.html b/index.html
index 1ebc3a3..9b551e3 100644
--- a/index.html
+++ b/index.html
@@ -311,7 +311,7 @@
dan Pengambil Kepijakan) serta visualisasi peta heatmap dan sebaran penduduk miskin secara
langsung.
-
+
Buka Aplikasi →
@@ -324,7 +324,7 @@
Visualisasi sebaran stasiun pengisian bahan bakar umum (SPBU) di wilayah Pontianak dan sekitarnya
menggunakan layer kontrol interaktif peta Leaflet.js.
-
+
Buka Project →
@@ -337,7 +337,7 @@
Peta visualisasi infrastruktur jalan tanah menggunakan pemetaan garis polylines serta poligon
kecamatan untuk menganalisis perkembangan jalan daerah.
-
+
Buka Project →
@@ -347,7 +347,7 @@