Parameterize host ports to allow custom ports in Coolify deployment
This commit is contained in:
+3
-3
@@ -6,7 +6,7 @@ services:
|
||||
image: nginx:alpine
|
||||
container_name: gis_gateway
|
||||
ports:
|
||||
- "80:80"
|
||||
- "${HOST_PORT_GATEWAY:-80}:80"
|
||||
volumes:
|
||||
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
depends_on:
|
||||
@@ -55,7 +55,7 @@ services:
|
||||
container_name: gis_db
|
||||
command: --default-authentication-plugin=mysql_native_password
|
||||
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:
|
||||
- MYSQL_ROOT_PASSWORD=rootpassword
|
||||
- MYSQL_DATABASE=spbu_db
|
||||
@@ -70,7 +70,7 @@ services:
|
||||
image: phpmyadmin:latest
|
||||
container_name: gis_phpmyadmin
|
||||
ports:
|
||||
- "8080:80"
|
||||
- "${HOST_PORT_PHPMYADMIN:-8080}:80"
|
||||
environment:
|
||||
- PMA_HOST=db
|
||||
- PMA_USER=root
|
||||
|
||||
Reference in New Issue
Block a user