name: seo-crawler-triage-engine services: postgres: image: ankane/pgvector:latest environment: POSTGRES_USER: ${POSTGRES_USER:-postgres} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} POSTGRES_DB: ${POSTGRES_DB:-open_indexing} # ports: # - "5433:5432" # WARNING: Exposing Postgres to the host is insecure for production. Uncomment for local debugging only. volumes: - pgdata:/var/lib/postgresql/data - ./backend/schema.sql:/docker-entrypoint-initdb.d/01_schema.sql - ./backend/migrate_clients.sql:/docker-entrypoint-initdb.d/02_migrate_clients.sql - ./backend/migrate_seo.sql:/docker-entrypoint-initdb.d/03_migrate_seo.sql healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres -d open_indexing"] interval: 5s timeout: 5s retries: 5 redis: image: redis:alpine # ports: # - "6379:6379" # WARNING: Exposing Redis to the host is insecure for production. Uncomment for local debugging only. volumes: - redisdata:/data backend: build: context: ./backend ports: - "3001:3001" depends_on: postgres: condition: service_healthy redis: condition: service_started env_file: - ./backend/.env environment: - DATABASE_URL=postgresql://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-open_indexing} - REDIS_URL=redis://redis:6379 frontend: build: context: ./frontend ports: - "3000:3000" depends_on: - backend environment: - NEXT_PUBLIC_API_URL=http://localhost:3001 - NEXT_PUBLIC_ADMIN_PASSWORD=${ADMIN_PASSWORD:-} volumes: pgdata: redisdata: