打包构建

This commit is contained in:
Yeomai committed 2026-10-18 16:17:01 +08:00
1 parent a6e45e0cb1
commit ee8772c1b7
36 files changed
+940 -21

No files matched your search

@@ -0,0 +1,12 @@
services:
pichost:
image: yeomaiyelove/pichost:1.5.1
pull_policy: never
container_name: pichost
restart: unless-stopped
ports:
- "${wizard_port}:6892"
volumes:
- "/${TRIM_APPDEST_VOL}/@appshare/pichost/data:/data"
- "${TRIM_APPDEST}/docker/start.sh:/fnos-start.sh:ro"
entrypoint: ["/bin/sh", "/fnos-start.sh"]
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
# 飞牛 compose 入口:安装向导写入配置后,启动官方镜像前执行初始化或备份恢复。
if [ -f /data/.fnos-restore.pending ]; then
ARCHIVE="$(tr -d '\r\n' < /data/.fnos-restore.pending)"
if [ -n "${ARCHIVE}" ] && [ -f "${ARCHIVE}" ]; then
if node /app/server/cli/backup-restore.mjs "${ARCHIVE}" --overwrite; then
rm -f /data/.fnos-restore.pending /data/.fnos-restore.failed
else
printf 'restore failed: %s\n' "${ARCHIVE}" > /data/.fnos-restore.failed
rm -f /data/.fnos-restore.pending
fi
fi
elif [ -f /data/fnos-bootstrap.mjs ]; then
node /data/fnos-bootstrap.mjs || true
fi
exec /docker-entrypoint.sh