Fix: Pridaná coolify sieť pre Traefik routing
- Pridaná coolify sieť do postgres a backend služieb - Deklarovaná coolify ako external network - Umožní Traefik-u routovať požiadavky na backend - Opravuje "no available server" chybu 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,7 @@ services:
|
||||
# - "5432:5432" # Commented for Coolify - not needed with Traefik
|
||||
networks:
|
||||
- ebook_network
|
||||
- coolify
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-ebook_user} -d ${POSTGRES_DB:-ebook_prod}"]
|
||||
interval: 10s
|
||||
@@ -67,19 +68,14 @@ services:
|
||||
labels:
|
||||
- "coolify.managed=true"
|
||||
- "coolify.type=application"
|
||||
# Traefik labels for routing
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.backend.rule=Host(`prince2-ebook.apps.inbox.sk`)"
|
||||
- "traefik.http.routers.backend.entrypoints=websecure"
|
||||
- "traefik.http.routers.backend.tls=true"
|
||||
- "traefik.http.routers.backend.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.backend.loadbalancer.server.port=8000"
|
||||
# Coolify automatically adds Traefik labels based on domain config
|
||||
volumes:
|
||||
# Pre persistenciu logov a translation súborov
|
||||
- backend_logs:/app/admin-backend/logs
|
||||
- translation_files:/app/admin-backend/translationfile
|
||||
networks:
|
||||
- ebook_network
|
||||
- coolify
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
||||
interval: 30s
|
||||
@@ -107,6 +103,9 @@ networks:
|
||||
ebook_network:
|
||||
driver: bridge
|
||||
name: ebook_network
|
||||
coolify:
|
||||
external: true
|
||||
name: coolify
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
|
||||
Reference in New Issue
Block a user