services: db: image: postgres:16-alpine restart: unless-stopped environment: POSTGRES_DB: scope_builder POSTGRES_USER: scope_user POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-scope_pass_2024} volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U scope_user -d scope_builder"] interval: 5s timeout: 3s retries: 5 backend: build: ./backend restart: unless-stopped depends_on: db: condition: service_healthy environment: DATABASE_URL: postgresql+asyncpg://scope_user:${POSTGRES_PASSWORD:-scope_pass_2024}@db:5432/scope_builder DATABASE_URL_SYNC: postgresql://scope_user:${POSTGRES_PASSWORD:-scope_pass_2024}@db:5432/scope_builder ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY} AZURE_TENANT_ID: ${AZURE_TENANT_ID} AZURE_CLIENT_ID: ${AZURE_CLIENT_ID} DEV_AUTH_BYPASS: ${DEV_AUTH_BYPASS:-} ports: - "127.0.0.1:8002:8000" volumes: - ${DATA_DIR:-./data}:/app/data volumes: pgdata: