mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-08-17 21:25:52 +02:00
* Added missing files and notes to docker container. Dev compose adjusted accordingly (but untested, since it isn't used yet). Checked release action * Removed e2e tests from release (not used yet) * Added missing env vars for unit test * Missing env * Display version number --------- Co-authored-by: Karl Ludwig Weise <ludwig@ludwigweise.de>
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
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:-5433}:5432"
|
|
volumes:
|
|
- postgres_data_dev:/var/lib/postgresql/data
|
|
- postgres_run_dev:/var/run/postgresql
|
|
- ./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
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- CHOWN
|
|
- DAC_OVERRIDE
|
|
- FOWNER
|
|
- SETGID
|
|
- SETUID
|
|
tmpfs:
|
|
- /tmp
|
|
- /var/run/postgresql
|
|
|
|
volumes:
|
|
postgres_data_dev:
|
|
driver: local
|
|
postgres_run_dev:
|
|
driver: local
|
|
|
|
networks:
|
|
appointment-booking-dev:
|
|
driver: bridge
|