Parameterize host ports to allow custom ports in Coolify deployment

This commit is contained in:
Monarch055
2026-06-11 00:13:16 +07:00
parent 395ba0a8ce
commit a0aaf24fcb
+3 -3
View File
@@ -6,7 +6,7 @@ services:
image: nginx:alpine image: nginx:alpine
container_name: gis_gateway container_name: gis_gateway
ports: ports:
- "80:80" - "${HOST_PORT_GATEWAY:-80}:80"
volumes: volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
depends_on: depends_on:
@@ -55,7 +55,7 @@ services:
container_name: gis_db container_name: gis_db
command: --default-authentication-plugin=mysql_native_password command: --default-authentication-plugin=mysql_native_password
ports: ports:
- "3307:3306" # Mapped to 3307 on host to avoid conflicts with Laragon/XAMPP - "${HOST_PORT_DB:-3307}:3306" # Mapped to 3307 on host to avoid conflicts with Laragon/XAMPP
environment: environment:
- MYSQL_ROOT_PASSWORD=rootpassword - MYSQL_ROOT_PASSWORD=rootpassword
- MYSQL_DATABASE=spbu_db - MYSQL_DATABASE=spbu_db
@@ -70,7 +70,7 @@ services:
image: phpmyadmin:latest image: phpmyadmin:latest
container_name: gis_phpmyadmin container_name: gis_phpmyadmin
ports: ports:
- "8080:80" - "${HOST_PORT_PHPMYADMIN:-8080}:80"
environment: environment:
- PMA_HOST=db - PMA_HOST=db
- PMA_USER=root - PMA_USER=root