This commit is contained in:
Masroor Ehsan 2025-01-27 11:01:14 +06:00
parent b5edddb606
commit ba0c95f982
2 changed files with 2 additions and 11 deletions

2
.env
View File

@ -23,12 +23,12 @@ ORTHANC_LOG=./volumes/orthanc_logs
#
POSTGRES_DATA_MNT=./volumes/pg_data
PGDATA=/var/lib/postgresql/data
PGPASSWORD=secret
POSTGRES_DB=orthanc
POSTGRES_PORT=5432
POSTGRES_USER=postgres
POSTGRES_PASSWORD=password
PGPASSWORD=secret
TZ="Asia/Dhaka"
PGTZ="Asia/Dhaka"

View File

@ -16,16 +16,7 @@ services:
volumes:
- ${POSTGRES_DATA_MNT}:${PGDATA}
healthcheck:
test:
[
"CMD",
"pg_isready",
"-q",
"-d",
"${POSTGRES_DB}",
"-U",
"${POSTGRES_USER}",
]
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
start_period: 20s
interval: 30s
retries: 5