COTexplorer/docker-compose.yaml
Greg 051514ced1 Connect web service to Coolify's Traefik proxy network
Without joining the external 'coolify' network, Traefik cannot reach
the container and the reverse proxy returns 502.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 13:43:04 +01:00

47 lines
917 B
YAML

services:
web:
build: .
container_name: cot_web
expose:
- "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
networks:
- coolify
- default
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
networks:
- default
volumes:
cot_data:
driver: local
networks:
coolify:
external: true