services: context-cot-workbench: build: . container_name: context-cot-workbench depends_on: postgres: condition: service_healthy ports: - "8501:8501" env_file: - .env environment: - MOCK_MODE=true - DATABASE_URL=postgresql+psycopg://contextcot:contextcot@postgres:5432/contextcot volumes: - ./data:/app/data postgres: image: postgres:16-bookworm container_name: context-cot-postgres environment: - POSTGRES_DB=contextcot - POSTGRES_USER=contextcot - POSTGRES_PASSWORD=contextcot ports: - "5432:5432" healthcheck: test: ["CMD-SHELL", "pg_isready -U contextcot -d contextcot"] interval: 10s timeout: 5s retries: 5 volumes: - postgres_data:/var/lib/postgresql/data volumes: postgres_data: