services: gateway: # if pulling from ghcr.io, use the following instead, and comment out the build section: # image: ghcr.io/mozilla-ai/any-llm/gateway:latest build: context: .. dockerfile: docker/Dockerfile args: VERSION: ${VERSION:-0.0.0+local} # If you want to use a different port, change it here and in the config.yml file. ports: - "8000:8000" volumes: - ./config.yml:/app/config.yml - ./service_account.json:/app/service_account.json command: ["any-llm-gateway", "serve", "--config", "/app/config.yml"] depends_on: postgres: condition: service_healthy restart: unless-stopped postgres: image: postgres:16-alpine environment: - POSTGRES_USER=gateway - POSTGRES_PASSWORD=gateway - POSTGRES_DB=gateway volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U gateway"] interval: 10s timeout: 5s retries: 5 restart: unless-stopped volumes: postgres_data: