Fix ports for Coolify
This commit is contained in:
+7
-6
@@ -4,8 +4,9 @@ services:
|
|||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
container_name: webgis_app
|
container_name: webgis_app
|
||||||
ports:
|
# Di Coolify, ports tidak perlu di-bind ke host, cukup expose port internal
|
||||||
- "8000:80"
|
expose:
|
||||||
|
- "80"
|
||||||
environment:
|
environment:
|
||||||
- DB_HOST=db
|
- DB_HOST=db
|
||||||
- DB_PORT=3306
|
- DB_PORT=3306
|
||||||
@@ -25,8 +26,8 @@ services:
|
|||||||
- db_data:/var/lib/mysql
|
- db_data:/var/lib/mysql
|
||||||
# Menyambungkan folder init-db agar tabel otomatis terbuat saat pertama kali dinyalakan
|
# Menyambungkan folder init-db agar tabel otomatis terbuat saat pertama kali dinyalakan
|
||||||
- ./init-db:/docker-entrypoint-initdb.d
|
- ./init-db:/docker-entrypoint-initdb.d
|
||||||
ports:
|
expose:
|
||||||
- "3307:3306"
|
- "3306"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
phpmyadmin:
|
phpmyadmin:
|
||||||
@@ -36,8 +37,8 @@ services:
|
|||||||
- PMA_HOST=db
|
- PMA_HOST=db
|
||||||
- PMA_USER=root
|
- PMA_USER=root
|
||||||
- PMA_PASSWORD=rahasia
|
- PMA_PASSWORD=rahasia
|
||||||
ports:
|
expose:
|
||||||
- "8080:80"
|
- "80"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user