fix: Remove host port 80 binding in docker-compose.yml to fix Traefik port collision in Coolify
This commit is contained in:
+2
-4
@@ -1,8 +1,8 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
# Coolify & Production Ready Docker Compose Configuration
|
# Coolify & Production Ready Docker Compose Configuration
|
||||||
# Traefik in Coolify automatically routes traffic to the 'frontend' service on port 80.
|
# Traefik in Coolify automatically routes traffic to the 'frontend' service on port 80 via expose.
|
||||||
# Container names and port bindings are intentionally managed by Coolify to avoid collisions.
|
# Host port bindings (ports) are omitted to avoid host port 80 conflicts with Traefik.
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
@@ -53,8 +53,6 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
ports:
|
|
||||||
- "${PORT:-80}:80"
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user