All COT data (database and downloaded HTML files) is stored on the cot_data Docker volume via DB_PATH=/data/cot.db. The ./data bind mount was redundant and could leak local files into the container. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
38 lines
804 B
YAML
38 lines
804 B
YAML
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
|