Fix ports for Coolify

This commit is contained in:
2026-06-12 12:24:58 +07:00
parent 6f925484e7
commit 2c7547e0bb
+7 -6
View File
@@ -4,8 +4,9 @@ services:
web:
build: .
container_name: webgis_app
ports:
- "8000:80"
# Di Coolify, ports tidak perlu di-bind ke host, cukup expose port internal
expose:
- "80"
environment:
- DB_HOST=db
- DB_PORT=3306
@@ -25,8 +26,8 @@ services:
- db_data:/var/lib/mysql
# Menyambungkan folder init-db agar tabel otomatis terbuat saat pertama kali dinyalakan
- ./init-db:/docker-entrypoint-initdb.d
ports:
- "3307:3306"
expose:
- "3306"
restart: unless-stopped
phpmyadmin:
@@ -36,8 +37,8 @@ services:
- PMA_HOST=db
- PMA_USER=root
- PMA_PASSWORD=rahasia
ports:
- "8080:80"
expose:
- "80"
depends_on:
- db
restart: unless-stopped