Fix ports for Coolify
This commit is contained in:
+7
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user