Files
Anime-Tracker-API/docker-compose.yml
2025-12-02 00:28:01 +01:00

23 lines
672 B
YAML

version: '3.8'
services:
api:
build: .
container_name: anime_tracker_api
expose:
- "8000"
environment:
- 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
- coolify
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
coolify:
external: true