添加portainer,优化部署

This commit is contained in:
2026-04-08 09:58:40 +08:00
parent 14584aed3d
commit e5f841c624
31 changed files with 1882 additions and 1261 deletions

21
portainer/.env.example Normal file
View File

@@ -0,0 +1,21 @@
# ===========================================
# Portainer CE 配置文件
# ===========================================
# ----- 域名与证书 -----
# 访问域名(必填,如 docker.example.com
PORTAINER_DOMAIN=docker.example.com
# Let's Encrypt 证书邮箱(必填)
CERTBOT_EMAIL=admin@example.com
# ----- Docker 镜像 -----
# Portainer CE 镜像(默认使用 LTS 长期支持版)
PORTAINER_IMAGE=portainer/portainer-ce:lts
# ----- 数据目录 -----
# Portainer 数据目录
PORTAINER_DATA_DIR=/var/lib/portainer
# 备份目录
BACKUP_DIR=/var/backups/portainer