mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-08-17 21:25:52 +02:00
41 lines
976 B
YAML
41 lines
976 B
YAML
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: appointment-booking-postgres-dev
|
|
restart: unless-stopped
|
|
user: postgres
|
|
environment:
|
|
POSTGRES_DB: ${POSTGRES_DB:-appointment_booking}
|
|
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
ports:
|
|
- "${POSTGRES_PORT:-5432}:5432"
|
|
volumes:
|
|
- postgres_data_dev:/var/lib/postgresql/data
|
|
- ./init-db:/docker-entrypoint-initdb.d:ro
|
|
networks:
|
|
- appointment-booking-dev
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD-SHELL",
|
|
"pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-appointment_booking}"
|
|
]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 30s
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
tmpfs:
|
|
- /tmp
|
|
- /var/run/postgresql
|
|
|
|
volumes:
|
|
postgres_data_dev:
|
|
driver: local
|
|
|
|
networks:
|
|
appointment-booking-dev:
|
|
driver: bridge
|