From b3073f1e77c0c5600617f7195f428652e4e5d8bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C9=A7=CF=83=E2=84=93=CF=83?= Date: Tue, 2 Dec 2025 00:32:38 +0100 Subject: [PATCH] fix: traefik --- docker-compose.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3a40c00..71a2228 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,14 +10,22 @@ services: - DATABASE_URL=${DATABASE_URL:-postgresql://user:password@host:5432/anime_tracker} - SECRET_KEY=${SECRET_KEY:-change-this-secret-key-in-production-min-32-characters-long} restart: unless-stopped - networks: # <--- AJOUT 1 : On attache le service au réseau + networks: - coolify + labels: + - "traefik.enable=true" + # Remplace par ton domaine exact + - "traefik.http.routers.anime-tracker.rule=Host(`anime-tracker.holo795.fr`)" + # Indique à Traefik d'utiliser l'entrypoint HTTP (port 80) + - "traefik.http.routers.anime-tracker.entrypoints=http" + # CRUCIAL : Dit à Traefik de taper sur le port 8000 du conteneur + - "traefik.http.services.anime-tracker.loadbalancer.server.port=8000" healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"] interval: 30s timeout: 10s retries: 3 -networks: # <--- AJOUT 2 : On définit le réseau externe +networks: coolify: external: true \ No newline at end of file