version: '3.8' services: db: image: postgres:15 environment: POSTGRES_USER: user POSTGRES_PASSWORD: pass POSTGRES_DB: costdb volumes: - postgres_data:/var/lib/postgresql/data ports: - "5432:5432" healthcheck: test: ["CMD-SHELL", "pg_isready -U user -d costdb"] interval: 5s timeout: 5s retries: 5 app: build: . volumes: - .:/app ports: - "8000:8000" environment: - DATABASE_URL=postgresql://user:pass@db:5432/costdb - MODEL_NAME=bigscience/bloomz-560m depends_on: db: condition: service_healthy volumes: postgres_data: