Fix: Remove port mappings for Coolify/Traefik compatibility

This commit is contained in:
richardtekula
2025-11-11 16:29:16 +01:00
parent e1b95c613d
commit feb583b66c

View File

@@ -14,8 +14,8 @@ services:
volumes: volumes:
- postgres_data:/var/lib/postgresql/data - postgres_data:/var/lib/postgresql/data
- ./init-scripts:/docker-entrypoint-initdb.d - ./init-scripts:/docker-entrypoint-initdb.d
ports: # ports:
- "5432:5432" # - "5432:5432" # Commented for Coolify - not needed with Traefik
networks: networks:
- ebook_network - ebook_network
healthcheck: healthcheck:
@@ -60,8 +60,13 @@ services:
# Server # Server
HOST: 0.0.0.0 HOST: 0.0.0.0
PORT: 8000 PORT: 8000
ports: # ports:
- "8000:8000" # - "8000:8000" # Commented for Coolify - Traefik handles routing
expose:
- "8000" # Internal exposure only, Traefik will route to this
labels:
- "coolify.managed=true"
- "coolify.type=application"
volumes: volumes:
# Pre persistenciu logov a translation súborov # Pre persistenciu logov a translation súborov
- backend_logs:/app/admin-backend/logs - backend_logs:/app/admin-backend/logs