refactor: adjust docker-compose.yml for coolify port mapping and service name

This commit is contained in:
fananazril
2026-06-11 20:07:41 +07:00
parent edf38bcfb7
commit 4432d81efc
+4 -4
View File
@@ -1,11 +1,11 @@
version: '3.8' version: '3.8'
services: services:
web: app:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: poverty_map_web container_name: poverty_map_app
restart: always restart: always
environment: environment:
- DB_HOST=db - DB_HOST=db
@@ -14,7 +14,7 @@ services:
- DB_NAME=poverty_map - DB_NAME=poverty_map
- BASE_URL=${BASE_URL:-http://localhost} - BASE_URL=${BASE_URL:-http://localhost}
ports: ports:
- "80:80" - "80"
depends_on: depends_on:
- db - db
@@ -29,7 +29,7 @@ services:
- db_data:/var/lib/mysql - db_data:/var/lib/mysql
- ./database.sql:/docker-entrypoint-initdb.d/init.sql:ro - ./database.sql:/docker-entrypoint-initdb.d/init.sql:ro
ports: ports:
- "3306:3306" - "3306"
volumes: volumes:
db_data: db_data: