# D1041231091 - WebGIS 01 sampai 05 Repository ini sudah disiapkan untuk deploy **sekali saja** menggunakan Docker Compose. ## Isi Project - `/` = landing page utama - `/01/` = Tugas 01 WebGIS SPBU - `/02/` = Tugas 02 WebGIS SPBU + polyline + polygon - `/03/` = Tugas 03 WebGIS jalan dan parsil tanah - `/04/` = Tugas 04 WebGIS SPBU dengan layer control - `/05/` = Tugas 05 WebGIS Poverty Mapping ## Akun awal Tugas 05 - Username: `superadmin` - Password: `password` ## Cara push ke Gitea ```bat cd C:\laragon\www\webgis-spbu\D1041231091-WebGIS-All git init git branch -M main git add . git commit -m "Deploy WebGIS 01-05 dengan Docker" git remote add origin https://git.ifuntanhub.dev/requestha/D1041231091-WebGIS-All.git git push -u origin main ``` Kalau remote sudah ada: ```bat git remote set-url origin https://git.ifuntanhub.dev/requestha/D1041231091-WebGIS-All.git git push -u origin main ``` ## Cara deploy di Coolify 1. Buat resource baru. 2. Pilih **Public Repository**. 3. Isi repository URL Gitea. 4. Branch: `main`. 5. Build Pack: **Docker Compose**. 6. Docker Compose Location: `/docker-compose.yml`. 7. Setelah resource dibuat, masuk ke service `web`. 8. Isi domain pada service `web`, contoh: ```text http://d1041231091-requestha-webgisall.203.24.51.230.sslip.io ``` 9. Klik **Deploy** satu kali. 10. Tunggu sampai `web` dan `db` running. ## Link setelah deploy ```text http://domain-kamu/ http://domain-kamu/01/ http://domain-kamu/02/ http://domain-kamu/03/ http://domain-kamu/04/ http://domain-kamu/05/ ``` ## Catatan penting - Jangan pilih menu database terpisah di Coolify. Database sudah ada di `docker-compose.yml`. - Jangan pakai Docker Compose Empty jika kode belum ada di server. Pakai Public Repository agar Coolify build langsung dari Gitea. - Jangan klik Deploy berkali-kali. Kalau Bad Gateway, cek log `web` dulu. - Database otomatis diimport dari folder `db/init/` saat container `db` pertama kali dibuat.