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
|
# - "5432:5432" # Commented for Coolify - not needed with Traefik
|
||||||
networks:
|
networks:
|
||||||
- ebook_network
|
- ebook_network
|
||||||
|
- coolify
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-ebook_user} -d ${POSTGRES_DB:-ebook_prod}"]
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-ebook_user} -d ${POSTGRES_DB:-ebook_prod}"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
@@ -67,19 +68,14 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
- "coolify.managed=true"
|
- "coolify.managed=true"
|
||||||
- "coolify.type=application"
|
- "coolify.type=application"
|
||||||
# Traefik labels for routing
|
# Coolify automatically adds Traefik labels based on domain config
|
||||||
- "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"
|
|
||||||
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
|
||||||
- translation_files:/app/admin-backend/translationfile
|
- translation_files:/app/admin-backend/translationfile
|
||||||
networks:
|
networks:
|
||||||
- ebook_network
|
- ebook_network
|
||||||
|
- coolify
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
@@ -107,6 +103,9 @@ networks:
|
|||||||
ebook_network:
|
ebook_network:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
name: ebook_network
|
name: ebook_network
|
||||||
|
coolify:
|
||||||
|
external: true
|
||||||
|
name: coolify
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user