File size: 659 Bytes
8223b74 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
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: |