court/docker-compose.yaml
2024-03-28 12:02:48 +00:00

21 lines
413 B
YAML

services:
db:
image: postgres:16-alpine
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: bonjour
POSTGRES_DB: court
volumes:
- ./initdb/:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
court:
build: .
ports:
- 8000:8080
environment:
DB_HOST: db
depends_on:
db:
condition: service_healthy