fix: network
This commit is contained in:
@@ -10,9 +10,14 @@ services:
|
|||||||
- DATABASE_URL=${DATABASE_URL:-postgresql://user:password@host:5432/anime_tracker}
|
- 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}
|
- SECRET_KEY=${SECRET_KEY:-change-this-secret-key-in-production-min-32-characters-long}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
networks: # <--- AJOUT 1 : On attache le service au réseau
|
||||||
|
- coolify
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
|
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|
||||||
|
networks: # <--- AJOUT 2 : On définit le réseau externe
|
||||||
|
coolify:
|
||||||
|
external: true
|
||||||
Reference in New Issue
Block a user