feat(docker): 初始化项目并配置定时备份 PostgreSQL 数据库示例

This commit is contained in:
严浩
2025-09-22 23:33:52 +08:00
commit 20808e8a55
9 changed files with 275 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
curl -fsSL https://Git.1-H.CC/Scripts/Linux/raw/branch/main/postgres-dump-zstd-docker-sock.sh |
sh -s -- \
--socket=/var/run/docker.sock \
--api-version=v1.51 \
--backup-dir=/backups \
--container=postgres17 \
--backup-prefix=postgres17_all_databases_zstd_

View File

@@ -0,0 +1,4 @@
#!/bin/sh
# Dependency installation moved to entrypoint.sh.
# Define APK_PACKAGES environment variable (e.g. "curl jq") to
# make the entrypoint ensure the listed Alpine packages are present.