| services: | |
| geminibusiness: | |
| build: . | |
| container_name: geminibusiness | |
| restart: unless-stopped | |
| ports: | |
| - "3003:8000" | |
| env_file: .env | |
| environment: | |
| - DATABASE_URL=postgresql+asyncpg://postgres:postgres@postgres:5432/geminibusiness | |
| - PROXY=http://host.docker.internal:10808 | |
| - HTTP_PROXY=http://host.docker.internal:10808 | |
| - HTTPS_PROXY=http://host.docker.internal:10808 | |
| - NO_PROXY=localhost,127.0.0.1,postgres | |
| volumes: | |
| - generated_images:/app/generated_images | |
| depends_on: | |
| postgres: | |
| condition: service_healthy | |
| postgres: | |
| image: docker.1ms.run/postgres:16-alpine | |
| container_name: geminibusiness-db | |
| restart: unless-stopped | |
| environment: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_DB: geminibusiness | |
| volumes: | |
| - postgres_data:/var/lib/postgresql/data | |
| ports: | |
| - "5433:5432" | |
| healthcheck: | |
| test: ["CMD-SHELL", "pg_isready -U postgres -d geminibusiness"] | |
| interval: 5s | |
| timeout: 5s | |
| retries: 5 | |
| volumes: | |
| postgres_data: | |
| generated_images: | |