version: "3.8" services: anl-app: build: context: . dockerfile: backend/Dockerfile args: - NEXT_PUBLIC_API_BASE_URL=${NEXT_PUBLIC_API_BASE_URL:-} container_name: anl-app restart: unless-stopped ports: - "${APP_PORT:-8080}:8080" environment: - HOST=0.0.0.0 - PORT=8080 - DB_PATH=/app/data/anl.db - GIN_MODE=release - CORS_ALLOW_ORIGINS=* - AUTO_MIGRATE=true - ADMIN_TOKEN=${ADMIN_TOKEN:?ADMIN_TOKEN must be set -- see .env.example} volumes: - anl-db-data:/app/data healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/health"] interval: 15s timeout: 3s retries: 3 start_period: 5s volumes: anl-db-data: name: anl-sqlite-storage