services: # db: # image: pgvector/pgvector:pg16 # container_name: customer_portal_db # environment: # POSTGRES_USER: postgres # POSTGRES_PASSWORD: postgres # POSTGRES_DB: customer_portal # ports: # - "5432:5432" # volumes: # - postgres_data:/var/lib/postgresql/data # restart: unless-stopped # healthcheck: # test: ["CMD-SHELL", "pg_isready -U postgres -d customer_portal"] # interval: 10s # timeout: 5s # retries: 5 # networks: # - app-network redis: image: redis:7-alpine container_name: nexus_search_cache ports: - "6380:6379" restart: unless-stopped healthcheck: test: [ "CMD", "redis-cli", "ping" ] interval: 5s timeout: 3s retries: 5 networks: - app-network nexus-api: build: context: . target: heavy container_name: nexus_master_api env_file: .env extra_hosts: - "host.docker.internal:host-gateway" # depends_on: # redis: # condition: service_healthy ports: - "8000:8000" volumes: - .:/app - ./uploads:/app/uploads - ./logs:/app/logs command: [ "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload" ] healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/health"] interval: 30s timeout: 10s retries: 3 networks: - app-network dns: - 1.1.1.1 - 8.8.8.8 nexus-worker: build: context: . target: heavy container_name: nexus_worker env_file: .env extra_hosts: - "host.docker.internal:host-gateway" # The unified worker listens to both queues (Default and Critical) # Queues are now configured in nexus_worker.WorkerSettings to fix CLI error command: ["arq", "nexus_worker.WorkerSettings"] volumes: - .:/app networks: - app-network dns: - 8.8.8.8 - 8.8.4.4 nexus-tunnel: image: cloudflare/cloudflared:latest container_name: nexus_tunnel command: tunnel --url http://nexus-api:8000 depends_on: nexus-api: condition: service_healthy networks: - app-network networks: app-network: driver: bridge # volumes: # postgres_data: