Remove host port bindings for db and phpmyadmin - use Coolify proxy routing instead

This commit is contained in:
Monarch055
2026-06-11 00:29:10 +07:00
parent a0aaf24fcb
commit ff41562702
+2 -4
View File
@@ -54,8 +54,7 @@ services:
image: mysql:8.0 image: mysql:8.0
container_name: gis_db container_name: gis_db
command: --default-authentication-plugin=mysql_native_password command: --default-authentication-plugin=mysql_native_password
ports: # No host port mapping - DB is only accessible internally via gis-network
- "${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
@@ -69,8 +68,7 @@ services:
phpmyadmin: phpmyadmin:
image: phpmyadmin:latest image: phpmyadmin:latest
container_name: gis_phpmyadmin container_name: gis_phpmyadmin
ports: # No host port mapping - Coolify's Traefik proxy routes traffic via the assigned domain
- "${HOST_PORT_PHPMYADMIN:-8080}:80"
environment: environment:
- PMA_HOST=db - PMA_HOST=db
- PMA_USER=root - PMA_USER=root