20 lines
488 B
YAML
20 lines
488 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "3000"
|
|
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
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|