Update templates

This commit is contained in:
2026-02-06 22:52:18 +05:30
parent 731a115cc5
commit 659ccc662a
4 changed files with 8 additions and 5 deletions

View File

@@ -1,16 +1,19 @@
services:
db:
container_name: db
image: docker.io/library/postgres:17.5
image: docker.io/library/postgres:18.1@sha256:f42fe58fa146f29072559fcb855cc2e93e2c9ab08c1cbe7c5db4973d665e3d86
restart: unless-stopped
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- PGDATA=/var/lib/postgresql/18/docker
volumes:
- ${APPDATA_PATH}//db:/var/lib/postgresql/data
- ${APPDATA_PATH}//db:/var/lib/postgresql
ports:
- ${DB_PORT}:5432
networks:
- backend
healthcheck:
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
interval: 10s