Implement #11 mhu/11-add-docker-compose-setup: Add compose setup #12

Merged
mhu merged 9 commits from mhu/11-add-docker-compose-setup into develop 2024-11-17 20:19:29 +01:00
Showing only changes of commit fc5fa9f740 - Show all commits

View File

@ -20,7 +20,8 @@ services:
networks: networks:
- backendnet - backendnet
depends_on: depends_on:
- "shimatta-kenkyusho-db" shimatta-kenkyusho-db:
condition: service_healthy
shimatta-kenkyusho-db: shimatta-kenkyusho-db:
image: postgres:16.5-alpine image: postgres:16.5-alpine
@ -31,6 +32,11 @@ services:
- "${PGDATA:-./run/pgdata}:/var/lib/postgresql/data" - "${PGDATA:-./run/pgdata}:/var/lib/postgresql/data"
networks: networks:
- backendnet - backendnet
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
networks: networks:
backendnet: backendnet: