feat: add docker deployment configuration, fix DB collation, and update portal links
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
FROM nginx:alpine
|
||||
COPY index.html /usr/share/nginx/html/index.html
|
||||
EXPOSE 80
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,78 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
michelle-db:
|
||||
image: mariadb:10.6
|
||||
container_name: michelle-db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: michelle_root_secure_pass_789
|
||||
volumes:
|
||||
- michelle_mysql_data:/var/lib/mysql
|
||||
|
||||
michelle-portal:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.portal
|
||||
container_name: michelle-portal
|
||||
restart: unless-stopped
|
||||
|
||||
michelle-sig-tanah-jalan:
|
||||
build:
|
||||
context: ./SIG_Tanah_Jalan
|
||||
dockerfile: Dockerfile
|
||||
container_name: michelle-sig-tanah-jalan
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
DB_HOST: michelle-db
|
||||
DB_USER: root
|
||||
DB_PASS: michelle_root_secure_pass_789
|
||||
DB_NAME: webgis_tanah_jalan
|
||||
depends_on:
|
||||
- michelle-db
|
||||
|
||||
michelle-spbu-pontianak:
|
||||
build:
|
||||
context: ./SPBU_Pontianak
|
||||
dockerfile: Dockerfile
|
||||
container_name: michelle-spbu-pontianak
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
DB_HOST: michelle-db
|
||||
DB_USER: root
|
||||
DB_PASS: michelle_root_secure_pass_789
|
||||
DB_NAME: webgis_spbu
|
||||
depends_on:
|
||||
- michelle-db
|
||||
|
||||
michelle-sig-kemiskinan:
|
||||
build:
|
||||
context: ./sig-kemiskinan
|
||||
dockerfile: Dockerfile
|
||||
container_name: michelle-sig-kemiskinan
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
DB_HOST: michelle-db
|
||||
DB_USER: root
|
||||
DB_PASS: michelle_root_secure_pass_789
|
||||
DB_NAME: sig_kemiskinan
|
||||
volumes:
|
||||
- michelle_kemiskinan_uploads:/var/www/html/assets/img/uploads
|
||||
depends_on:
|
||||
- michelle-db
|
||||
|
||||
michelle-webgis-choropleth:
|
||||
build:
|
||||
context: ./Webgis_Choropleth
|
||||
dockerfile: Dockerfile
|
||||
container_name: michelle-webgis-choropleth
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
michelle_mysql_data:
|
||||
michelle_kemiskinan_uploads:
|
||||
|
||||
networks:
|
||||
default:
|
||||
name: pba-new_default
|
||||
external: true
|
||||
+4
-4
@@ -485,7 +485,7 @@
|
||||
<div class="grid">
|
||||
|
||||
<!-- Card 1: SIG Jalan & Parsil Tanah -->
|
||||
<a href="http://e8kkc4gs80cc8gsg8cs8s8ks.203.24.51.230.sslip.io" class="card card-road">
|
||||
<a href="/sig-tanah-jalan/" class="card card-road">
|
||||
<div>
|
||||
<div class="card-icon-container">
|
||||
<i class="fa-solid fa-road"></i>
|
||||
@@ -508,7 +508,7 @@
|
||||
</a>
|
||||
|
||||
<!-- Card 2: SIG SPBU Pontianak -->
|
||||
<a href="http://gossc4ooggkscw0ww8k0k04s.203.24.51.230.sslip.io" class="card card-spbu">
|
||||
<a href="/spbu-pontianak/" class="card card-spbu">
|
||||
<div>
|
||||
<div class="card-icon-container">
|
||||
<i class="fa-solid fa-gas-pump"></i>
|
||||
@@ -531,7 +531,7 @@
|
||||
</a>
|
||||
|
||||
<!-- Card 3: WebGIS PovertyMap -->
|
||||
<a href="http://mcgkc4cw0gwgko0c8ksskswc.203.24.51.230.sslip.io" class="card card-poverty">
|
||||
<a href="/sig-kemiskinan/" class="card card-poverty">
|
||||
<div>
|
||||
<div class="card-icon-container">
|
||||
<i class="fa-solid fa-people-roof"></i>
|
||||
@@ -554,7 +554,7 @@
|
||||
</a>
|
||||
|
||||
<!-- Card 4: Choropleth Kepadatan Penduduk -->
|
||||
<a href="http://guxzrn2nagog3wwwqjdlca9w.203.24.51.230.sslip.io" class="card card-choropleth">
|
||||
<a href="/webgis-choropleth/" class="card card-choropleth">
|
||||
<div>
|
||||
<div class="card-icon-container">
|
||||
<i class="fa-solid fa-chart-area"></i>
|
||||
|
||||
@@ -37,7 +37,7 @@ CREATE TABLE `bantuan_penduduk` (
|
||||
`diinput_oleh` int DEFAULT NULL COMMENT 'FK users',
|
||||
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `bantuan_penduduk`
|
||||
@@ -66,7 +66,7 @@ CREATE TABLE `foto_rumah` (
|
||||
`keterangan` varchar(255) DEFAULT NULL,
|
||||
`diambil_oleh` int DEFAULT NULL COMMENT 'FK users',
|
||||
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `foto_rumah`
|
||||
@@ -91,7 +91,7 @@ CREATE TABLE `jenis_bantuan` (
|
||||
`warna_badge` varchar(7) DEFAULT '#4f8ef7' COMMENT 'Hex color badge',
|
||||
`aktif` tinyint(1) DEFAULT '1',
|
||||
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `jenis_bantuan`
|
||||
@@ -120,7 +120,7 @@ CREATE TABLE `notifikasi` (
|
||||
`penduduk_id` int DEFAULT NULL COMMENT 'Referensi penduduk terkait',
|
||||
`sudah_dibaca` tinyint(1) DEFAULT '0',
|
||||
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `notifikasi`
|
||||
@@ -177,7 +177,7 @@ CREATE TABLE `penduduk_miskin` (
|
||||
`verified_at` timestamp NULL DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `penduduk_miskin`
|
||||
@@ -206,7 +206,7 @@ CREATE TABLE `rumah_ibadah` (
|
||||
`radius` int DEFAULT '500' COMMENT 'Radius dalam meter',
|
||||
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `rumah_ibadah`
|
||||
@@ -233,7 +233,7 @@ CREATE TABLE `users` (
|
||||
`last_login` timestamp NULL DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `users`
|
||||
@@ -258,7 +258,7 @@ CREATE TABLE `wilayah` (
|
||||
`rt` varchar(10) DEFAULT NULL,
|
||||
`rw` varchar(10) DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `wilayah`
|
||||
|
||||
Reference in New Issue
Block a user