2024-03-28 11:29:32 +01:00
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: postgres:16-alpine
|
|
|
|
ports:
|
|
|
|
- 5432:5432
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: bonjour
|
|
|
|
POSTGRES_DB: court
|
|
|
|
volumes:
|
|
|
|
- ./initdb/:/docker-entrypoint-initdb.d
|
2024-03-28 13:02:48 +01:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "pg_isready"]
|
2024-03-28 11:29:32 +01:00
|
|
|
court:
|
|
|
|
build: .
|
|
|
|
ports:
|
|
|
|
- 8000:8080
|
|
|
|
environment:
|
|
|
|
DB_HOST: db
|
|
|
|
depends_on:
|
2024-03-28 13:02:48 +01:00
|
|
|
db:
|
|
|
|
condition: service_healthy
|