Update Syncthing to v2 (major) (#1187)
This commit is contained in:
parent
2451d896e1
commit
471cbd9d35
|
|
@ -0,0 +1,10 @@
|
|||
additionalProperties:
|
||||
formFields:
|
||||
- default: "8443"
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: 发现服务器端口
|
||||
labelEn: Discovery server port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
syncthing_discosrv:
|
||||
container_name: ${CONTAINER_NAME}
|
||||
environment:
|
||||
- PUID=1001
|
||||
- PGID=1001
|
||||
- TZ=Asia/Shanghai
|
||||
image: syncthing/discosrv:2.0.0
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8443
|
||||
restart: always
|
||||
volumes:
|
||||
- ./data:/var/stdiscosrv
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
additionalProperties:
|
||||
formFields:
|
||||
- default: "22067"
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: 中继服务器端口
|
||||
labelEn: Relay server port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
services:
|
||||
syncthing_relaysrv:
|
||||
command: -pools="" -listen=":22067"
|
||||
container_name: ${CONTAINER_NAME}
|
||||
environment:
|
||||
- PUID=1001
|
||||
- PGID=1001
|
||||
- pools=""
|
||||
image: syncthing/relaysrv:2.0.0
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:22067 # 中继服务器的数据连接端口(必须开启)
|
||||
# - 22070:22070 # 用于公用的中继服务器池,显示数据传输、客户端数量等状态,可不开启
|
||||
restart: always
|
||||
volumes:
|
||||
- ./data:/var/strelaysrv
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
CONTAINER_NAME="syncthing"
|
||||
DATA_PATH_APP_CONFIG="./data/config"
|
||||
DATA_PATH_DATA1="./data/data1"
|
||||
DATA_PATH_DATA2="./data/data2"
|
||||
PANEL_APP_PORT_HTTP="40118"
|
||||
SYNCTHING_PORT="22000"
|
||||
SYNCTHING_PORT_EXTRA_UDP="21027"
|
||||
TIME_ZONE="Asia/Shanghai"
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
additionalProperties:
|
||||
formFields:
|
||||
- default: 40118
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 22000
|
||||
edit: true
|
||||
envKey: SYNCTHING_PORT
|
||||
labelEn: Sync Port
|
||||
labelZh: 同步端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 21027
|
||||
edit: true
|
||||
envKey: SYNCTHING_PORT_EXTRA_UDP
|
||||
labelEn: Sync Port
|
||||
labelZh: 同步端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ./data/config
|
||||
edit: true
|
||||
envKey: DATA_PATH_APP_CONFIG
|
||||
labelEn: Config folder path
|
||||
labelZh: 配置文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
- default: ./data/data1
|
||||
edit: true
|
||||
envKey: DATA_PATH_DATA1
|
||||
labelEn: Data folder path (internal "/data1")
|
||||
labelZh: 数据文件夹路径 (内部"/data1")
|
||||
required: true
|
||||
type: text
|
||||
- default: ./data/data2
|
||||
edit: true
|
||||
envKey: DATA_PATH_DATA2
|
||||
labelEn: Data folder path (internal "/data2")
|
||||
labelZh: 数据文件夹路径 (内部"/data2")
|
||||
required: true
|
||||
type: text
|
||||
- default: Asia/Shanghai
|
||||
edit: true
|
||||
envKey: TIME_ZONE
|
||||
labelEn: Time zone
|
||||
labelZh: 时区
|
||||
required: true
|
||||
type: text
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
services:
|
||||
syncthing:
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
hostname: syncthing
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=${TIME_ZONE}
|
||||
volumes:
|
||||
- ${DATA_PATH_APP_CONFIG}:/config
|
||||
- ${DATA_PATH_DATA1}:/data1
|
||||
- ${DATA_PATH_DATA2}:/data2
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8384
|
||||
- ${SYNCTHING_PORT}:22000/tcp
|
||||
- ${SYNCTHING_PORT}:22000/udp
|
||||
- ${SYNCTHING_PORT_EXTRA_UDP}:21027/udp
|
||||
image: syncthing/syncthing:2.0.0
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
Loading…
Reference in New Issue