services: postgres: image: postgres:16-alpine environment: POSTGRES_USER: beaver POSTGRES_PASSWORD: beaver POSTGRES_DB: beaver volumes: - postgres-data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U beaver -d beaver"] interval: 5s timeout: 3s retries: 20 gateway: build: context: .. depends_on: postgres: condition: service_healthy environment: CONFIG_PATH: /config/config.py DATABASE_URL: postgresql+psycopg://beaver:beaver@postgres:5432/beaver ADMIN_USER: admin ADMIN_PASS: change-me SESSION_SECRET: change-me-too BOOTSTRAP_TOKENS: dev:change-me:* CLAUDE_CODE_OAUTH_TOKEN: ${CLAUDE_CODE_OAUTH_TOKEN} ports: - "8000:8000" volumes: - ./config.py:/config/config.py:ro volumes: postgres-data: