Housing_Price_API / docker-compose.yml
ANL2001's picture
chore: add Docker configuration
9c99468
Raw History Blame Contribute Delete
489 Bytes
services:
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: housing
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
api:
build: .
ports:
- "8080:8080"
environment:
DATABASE_URL: postgresql://postgres:postgres@db:5432/housing
depends_on:
- db
volumes:
- ./ml/artifacts:/app/ml/artifacts
volumes:
postgres_data: