services: web: build: . container_name: cot_web ports: - "8000:8000" volumes: - cot_data:/data environment: - DB_PATH=/data/cot.db command: > sh -c "python3 -m app.ingestion.cli init-db && uvicorn app.api.main:app --host 0.0.0.0 --port 8000" restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/health"] interval: 30s timeout: 10s retries: 3 start_period: 10s cron: build: . container_name: cot_cron volumes: - cot_data:/data environment: - DB_PATH=/data/cot.db command: /app/scripts/cron_entrypoint.sh restart: unless-stopped depends_on: web: condition: service_healthy volumes: cot_data: driver: local