Spaces:
Sleeping
Sleeping
| services: | |
| postgres: | |
| image: postgres:16-alpine | |
| restart: unless-stopped | |
| environment: | |
| POSTGRES_USER: ${POSTGRES_USER:-agent} | |
| POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required} | |
| POSTGRES_DB: ${POSTGRES_DB:-ai_voice_agent} | |
| volumes: | |
| - postgres_data:/var/lib/postgresql/data | |
| healthcheck: | |
| test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-agent}"] | |
| interval: 10s | |
| timeout: 5s | |
| retries: 5 | |
| app: | |
| build: . | |
| restart: unless-stopped | |
| env_file: .env | |
| environment: | |
| DATABASE_URL: postgresql+asyncpg://${POSTGRES_USER:-agent}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-ai_voice_agent} | |
| APP_HOST: 0.0.0.0 | |
| APP_PORT: 7860 | |
| ENABLE_PHONE_CALLS: "false" | |
| ports: | |
| - "${APP_PORT:-7860}:7860" | |
| volumes: | |
| - ./data:/app/data | |
| depends_on: | |
| postgres: | |
| condition: service_healthy | |
| volumes: | |
| postgres_data: | |