发布 MoviePilot V2
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
parent
00bd3295f2
commit
0ef5a1060c
|
|
@ -0,0 +1,87 @@
|
||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: "/home/movie-pilot"
|
||||||
|
edit: true
|
||||||
|
envKey: MOVIEPILOT_ROOT_PATH
|
||||||
|
labelZh: 数据持久化路径
|
||||||
|
labelEn: Data persistence path
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: 3000
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
|
labelZh: WebUI 端口
|
||||||
|
labelEn: WebUI Port
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: 3001
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_API
|
||||||
|
labelZh: API 端口
|
||||||
|
labelEn: API Port
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: "admin"
|
||||||
|
edit: true
|
||||||
|
envKey: SUPERUSER
|
||||||
|
labelZh: 管理员用户名
|
||||||
|
labelEn: Superuser Username
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: "moviepilot"
|
||||||
|
edit: true
|
||||||
|
envKey: API_TOKEN
|
||||||
|
labelZh: API 令牌
|
||||||
|
labelEn: API Token
|
||||||
|
required: true
|
||||||
|
type: password
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: PROXY_HOST
|
||||||
|
labelZh: 网络代理
|
||||||
|
labelEn: Proxy Host
|
||||||
|
required: false
|
||||||
|
rule: paramExtUrl
|
||||||
|
type: text
|
||||||
|
- default: "false"
|
||||||
|
edit: true
|
||||||
|
envKey: AUTO_UPDATE_RESOURCE
|
||||||
|
labelZh: 自动更新资源包
|
||||||
|
labelEn: Auto Update Resources
|
||||||
|
required: true
|
||||||
|
type: select
|
||||||
|
values:
|
||||||
|
- label: 开启
|
||||||
|
value: "true"
|
||||||
|
- label: 关闭
|
||||||
|
value: "false"
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: CUSTOM_MOUNT_DIRECTORY_1
|
||||||
|
labelEn: Custom mount directory 1
|
||||||
|
labelZh: 自定义挂载目录 1
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: CUSTOM_MOUNT_DIRECTORY_2
|
||||||
|
labelEn: Custom mount directory 2
|
||||||
|
labelZh: 自定义挂载目录 2
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: CUSTOM_MOUNT_DIRECTORY_3
|
||||||
|
labelEn: Custom mount directory 3
|
||||||
|
labelZh: 自定义挂载目录 3
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: IYUU_SIGN
|
||||||
|
labelEn: IYUU Sign
|
||||||
|
labelZh: IYUU登录令牌
|
||||||
|
required: false
|
||||||
|
type: password
|
||||||
|
|
@ -0,0 +1,40 @@
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
movie-pilot-v2:
|
||||||
|
image: jxxghp/moviepilot-v2:2.0.2
|
||||||
|
container_name: ${CONTAINER_NAME}
|
||||||
|
labels:
|
||||||
|
createdBy: "Apps"
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- 1panel-network
|
||||||
|
ports:
|
||||||
|
- ${PANEL_APP_PORT_HTTP}:3000
|
||||||
|
- ${PANEL_APP_PORT_API}:3001
|
||||||
|
env_file:
|
||||||
|
- /etc/1panel/envs/global.env
|
||||||
|
- /etc/1panel/envs/moviepilot/moviepilot2.env
|
||||||
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- ${MOVIEPILOT_ROOT_PATH}/config:/config
|
||||||
|
- ${MOVIEPILOT_ROOT_PATH}/moviepilot:/moviepilot
|
||||||
|
- ${MOVIEPILOT_ROOT_PATH}/download:/download
|
||||||
|
- ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1}
|
||||||
|
- ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2}
|
||||||
|
- ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3}
|
||||||
|
environment:
|
||||||
|
- NGINX_PORT=3000
|
||||||
|
- PORT=3001
|
||||||
|
- PUID=0
|
||||||
|
- PGID=0
|
||||||
|
- UMASK=022
|
||||||
|
- HTTP_PROXY=${PROXY_HOST}
|
||||||
|
- HTTPS_PROXY=${PROXY_HOST}
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: 5m
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# setup-1 add default values
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
sed -i '/^ENV_FILE=/d' .env
|
||||||
|
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# setup-1 add default values
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
sed -i '/^ENV_FILE=/d' .env
|
||||||
|
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
shortDescZh: NAS媒体库自动化管理工具
|
shortDescZh: NAS媒体库自动化管理工具
|
||||||
shortDescEn: NAS media library automation management tool
|
shortDescEn: NAS media library automation management tool
|
||||||
type: website
|
type: website
|
||||||
crossVersionUpdate: true
|
crossVersionUpdate: false
|
||||||
limit: 0
|
limit: 0
|
||||||
website: https://github.com/jxxghp/MoviePilot/
|
website: https://github.com/jxxghp/MoviePilot/
|
||||||
github: https://github.com/jxxghp/MoviePilot/
|
github: https://github.com/jxxghp/MoviePilot/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue