# `docker compose up` starts local infrastructure for fast agent iteration. # `docker compose --profile full up --build` also runs the LiveKit worker. name: alderway-voice-agent services: postgres: image: postgres:16-alpine environment: POSTGRES_USER: alderway POSTGRES_PASSWORD: alderway POSTGRES_DB: alderway_demo ports: - "${PG_PORT:-55434}:5432" # non-default host port: avoids clashing volumes: # with other local postgres instances - pgdata:/var/lib/postgresql/data # *.sql in this dir run in filename order on first boot only - ./db/schema.sql:/docker-entrypoint-initdb.d/01-schema.sql:ro - ./db/seed.sql:/docker-entrypoint-initdb.d/02-seed.sql:ro healthcheck: test: ["CMD-SHELL", "pg_isready -U alderway -d alderway_demo"] interval: 3s timeout: 3s retries: 20 tools-api: build: ./tools-api environment: DATABASE_URL: postgresql://alderway:alderway@postgres:5432/alderway_demo LICENSED_AGENT_NUMBER: "${LICENSED_AGENT_NUMBER:-}" ports: - "${TOOLS_PORT:-18092}:8080" depends_on: postgres: condition: service_healthy restart: unless-stopped healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/health')"] interval: 5s timeout: 3s retries: 20 agent: profiles: ["full"] build: . env_file: .env.local environment: TOOLS_API_URL: http://tools-api:8080 GOOGLE_APPLICATION_CREDENTIALS: /etc/vertex/creds.json volumes: # Supplied at run time, never by the repository. /dev/null keeps the stack startable when voice # credentials are absent. - ${VERTEX_CREDENTIALS:-/dev/null}:/etc/vertex/creds.json:ro depends_on: tools-api: condition: service_healthy restart: unless-stopped volumes: pgdata: