打包构建
This commit is contained in:
1 parent
a6e45e0cb1
commit
ee8772c1b7
36 files changed
+940
-21
No files matched your search
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"defaults": {
|
||||
"run-as": "package"
|
||||
},
|
||||
"username": "docker-pichost",
|
||||
"groupname": "docker-pichost"
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"docker-project": {
|
||||
"projects": [
|
||||
{
|
||||
"name": "pichost",
|
||||
"path": "docker"
|
||||
}
|
||||
]
|
||||
},
|
||||
"data-share": {
|
||||
"shares": [
|
||||
{
|
||||
"name": "pichost/data",
|
||||
"permission": {
|
||||
"rw": [
|
||||
"docker-pichost"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -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"]
|
||||
@@ -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
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
".url": {
|
||||
"pichost.main": {
|
||||
"title": "PicHost",
|
||||
"icon": "images/icon_{0}.png",
|
||||
"type": "url",
|
||||
"protocol": "http",
|
||||
"port": "${wizard_port}",
|
||||
"url": "/",
|
||||
"allUsers": true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user