# `docker compose up` starts local infrastructure. `--profile full` also runs the worker. name: clinic-voice-agent services: postgres: image: postgres:16-alpine environment: POSTGRES_USER: clinic POSTGRES_PASSWORD: clinic POSTGRES_DB: clinic ports: - "${PG_PORT:-55434}:5432" volumes: - pgdata:/var/lib/postgresql/data - ./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 clinic -d clinic"] interval: 3s timeout: 3s retries: 20 tools-api: build: ./tools-api environment: DATABASE_URL: postgresql://clinic:clinic@postgres:5432/clinic ports: - "${TOOLS_PORT:-18091}: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: - ${VERTEX_CREDENTIALS:-/dev/null}:/etc/vertex/creds.json:ro depends_on: tools-api: condition: service_healthy restart: unless-stopped volumes: pgdata: