Files

25 lines
886 B
YAML
Raw Permalink Normal View History

2026-06-28 22:55:13 +08:00
# path:: mkdir -pv /data/volumes/anqicms
# pull:: docker compose -p anqicms --env-file ./anqicms/env.cfg -f ./anqicms/stack.yml pull
# run:: docker compose -p anqicms --env-file ./anqicms/env.cfg -f ./anqicms/stack.yml up -d
# disc::
# - /app 是容器内应用数据根目录(配置、上传、缓存、主题、插件等)
# - bind 挂载到 ${Volumes_Path} 实现持久化
# - 首次启动后通过 http://<host>:8001 进入安装向导
services:
anqicms:
image: ${IMAGE_TAG}
container_name: anqicms
restart: unless-stopped
environment:
- TZ=Asia/Shanghai
ports:
- "${ANQICMS_PORT}:8001"
volumes:
- ${Volumes_Path}:/app
- ${Volumes_Path}/public:/app/public
- ${Volumes_Path}/template:/app/template
- ${Volumes_Path}/data:/app/data
2026-06-28 22:55:13 +08:00
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro