Files
WechatOnCloud/fnos/woc/app/docker/docker-compose.yaml
Gloridust 5c5e9c8540 update
2026-05-29 22:00:23 +08:00

25 lines
1.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# fnOS 应用中心会直接执行本 compose 来启停应用。
# 与仓库根的 docker-compose.yml 等价:面板为唯一服务,挂 docker.sock 按需创建微信实例。
# 注意:面板需要访问宿主 docker.sock 来动态创建/销毁微信实例容器(等同宿主 root 权限)。
# 因此本应用必须能挂载 /var/run/docker.sock若 fnOS 沙箱禁止,应用将无法新建实例。
services:
panel:
image: ghcr.io/gloridust/woc-panel:${WOC_VERSION:-latest}
container_name: woc-panel
pull_policy: always
environment:
- PORT=8080
- WOC_WECHAT_IMAGE=ghcr.io/gloridust/wechat-on-cloud:${WOC_VERSION:-latest}
- PUID=${WOC_PUID:-1000}
- PGID=${WOC_PGID:-1000}
- TZ=${WOC_TZ:-Asia/Shanghai}
- PANEL_ADMIN_USER=${WOC_USER:-admin}
- PANEL_ADMIN_PASSWORD=${WOC_PASSWORD:-wechat}
- PANEL_DATA=/data/accounts.json
volumes:
- ./data-panel:/data
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "${WOC_HTTP_PORT:-36080}:8080"
restart: unless-stopped