ai-decision-intelligence-platform / docker-compose.yml
gavinder's picture
Sync from GitHub via hub-sync
d9daedb verified
Raw History Blame Contribute Delete
653 Bytes
version: "3.9"
services:
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: decision_intelligence
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d decision_intelligence"]
interval: 10s
timeout: 5s
retries: 5
app:
build: .
env_file:
- .env
environment:
PORT: 8000
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
volumes:
- .:/app
volumes:
postgres_data: