Add templates for mariadb, postgres, and valkey

This commit is contained in:
2025-07-20 16:13:24 +05:30
parent c28e4a7ddf
commit cbd57bf338
3 changed files with 56 additions and 0 deletions

19
.templates/postgres.yml Normal file
View File

@@ -0,0 +1,19 @@
services:
db:
container_name: db
image: docker.io/library/postgres:17.5
restart: unless-stopped
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- ${APPDATA_PATH}//db:/var/lib/postgresql/data
ports:
- ${DB_PORT}:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s