services: db: image: pgvector/pgvector:pg16 environment: POSTGRES_DB: opportunity_radar POSTGRES_USER: postgres POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres} expose: - "5432" volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5 restart: unless-stopped redis: image: redis:7-alpine expose: - "6379" volumes: - redis_data:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 5s timeout: 5s retries: 5 restart: unless-stopped backend: build: ./backend expose: - "8000" env_file: - ./backend/.env environment: DATABASE_URL: postgresql+asyncpg://postgres:${POSTGRES_PASSWORD:-postgres}@db:5432/opportunity_radar REDIS_URL: redis://redis:6379/0 RSSHUB_URL: http://rsshub:1200 depends_on: db: condition: service_healthy redis: condition: service_healthy rsshub: condition: service_healthy restart: unless-stopped rsshub: image: diygod/rsshub expose: - "1200" environment: NODE_ENV: production CACHE_TYPE: memory healthcheck: test: ["CMD-SHELL", "curl -sf http://localhost:1200/healthz || exit 1"] interval: 30s timeout: 10s retries: 3 restart: unless-stopped frontend: build: context: ./frontend dockerfile: Dockerfile ports: - "127.0.0.1:3000:80" depends_on: - backend restart: unless-stopped volumes: pgdata: redis_data: