services: backend: container_name: staging_sage_api build: context: . target: staging env_file: .env.staging volumes: - ./data:/app/data - ./logs:/app/logs ports: - "8002:8002" environment: ENV: staging DEBUG: "false" DATABASE_URL: "sqlite+aiosqlite:///./data/sage_staging.db" restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8002/"] interval: 30s timeout: 10s retries: 3