refactor: 统一数据持久化目录

This commit is contained in:
wanghe-fit2cloud 2023-07-13 15:34:02 +08:00
parent 7cb4c87e4b
commit ec37473fb4
69 changed files with 61 additions and 179 deletions

View File

@ -26,7 +26,6 @@ services:
image: adguard/adguardhome:v0.107.33 image: adguard/adguardhome:v0.107.33
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
adminer: adminer:
image: adminer:4.8.1-standalone image: adminer:4.8.1-standalone

View File

@ -8,17 +8,3 @@ additionalProperties:
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- default: ./data/data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text
- default: ./data/mnt
edit: true
envKey: MOUNT_PATH
labelEn: Mount folder path
labelZh: 挂载文件夹路径
required: true
type: text

View File

@ -8,8 +8,8 @@ services:
ports: ports:
- "${PANEL_APP_PORT_HTTP}:5244" - "${PANEL_APP_PORT_HTTP}:5244"
volumes: volumes:
- "${DATA_PATH}:/opt/alist/data" - ./data/data:/opt/alist/data
- "${MOUNT_PATH}:/mnt/data" - ./data/mnt:/mnt/data
environment: environment:
- PUID=0 - PUID=0
- PGID=0 - PGID=0
@ -17,7 +17,6 @@ services:
image: xhofe/alist:v3.21.0 image: xhofe/alist:v3.21.0
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -8,10 +8,3 @@ additionalProperties:
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text

View File

@ -8,11 +8,10 @@ services:
ports: ports:
- "${PANEL_APP_PORT_HTTP}:80" - "${PANEL_APP_PORT_HTTP}:80"
volumes: volumes:
- "${DATA_PATH}:/data" - ./data:/data
image: vaultwarden/server:1.29.0-alpine image: vaultwarden/server:1.29.0-alpine
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -16,7 +16,6 @@ services:
image: cloudreve/cloudreve:3.8.0 image: cloudreve/cloudreve:3.8.0
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -8,13 +8,6 @@ additionalProperties:
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text
- default: code - default: code
envKey: WEB_PASSWORD envKey: WEB_PASSWORD
labelEn: Web access password labelEn: Web access password

View File

@ -8,7 +8,7 @@ services:
ports: ports:
- "${PANEL_APP_PORT_HTTP}:8443" - "${PANEL_APP_PORT_HTTP}:8443"
volumes: volumes:
- "${DATA_PATH}:/config" - ./data:/config
environment: environment:
- PUID=1000 - PUID=1000
- PGID=1000 - PGID=1000
@ -19,7 +19,6 @@ services:
image: linuxserver/code-server:4.14.1 image: linuxserver/code-server:4.14.1
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -25,7 +25,6 @@ services:
- 1panel-network - 1panel-network
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -8,10 +8,3 @@ additionalProperties:
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
ddns-go: ddns-go:
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
@ -8,11 +8,10 @@ services:
ports: ports:
- "${PANEL_APP_PORT_HTTP}:9876" - "${PANEL_APP_PORT_HTTP}:9876"
volumes: volumes:
- "${DATA_PATH}:/root" - ./data:/root
image: jeessy/ddns-go:v5.3.6 image: jeessy/ddns-go:v5.3.6
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -12,7 +12,6 @@ services:
- ./data:/var/lib/registry - ./data:/var/lib/registry
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -62,13 +62,6 @@ additionalProperties:
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data storage folder
labelZh: 数据存放文件夹
required: true
type: text
- default: http://localhost:40020 - default: http://localhost:40020
edit: true edit: true
envKey: FLARUM_EXTERNAL_URL envKey: FLARUM_EXTERNAL_URL

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
flarum: flarum:
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
@ -8,7 +8,7 @@ services:
ports: ports:
- "${PANEL_APP_PORT_HTTP}:8000" - "${PANEL_APP_PORT_HTTP}:8000"
volumes: volumes:
- "${DATA_PATH}:/data" - ./data:/data
environment: environment:
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
- PUID=1000 - PUID=1000
@ -30,7 +30,7 @@ services:
- FLARUM_BASE_URL=${FLARUM_EXTERNAL_URL} - FLARUM_BASE_URL=${FLARUM_EXTERNAL_URL}
image: crazymax/flarum:1.8.0 image: crazymax/flarum:1.8.0
labels: labels:
createdBy: Apps createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
gitea: gitea:
image: gitea/gitea:1.19.4 image: gitea/gitea:1.19.4
@ -23,7 +23,6 @@ services:
- "${PANEL_APP_PORT_SSH}:22" - "${PANEL_APP_PORT_SSH}:22"
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
halo: halo:
image: halohub/halo:2.7.0 image: halohub/halo:2.7.0
@ -26,7 +26,6 @@ services:
- --halo.security.initializer.superadminpassword=${HALO_ADMIN_PASSWORD} - --halo.security.initializer.superadminpassword=${HALO_ADMIN_PASSWORD}
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
jellyfin: jellyfin:
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
@ -14,7 +14,6 @@ services:
image: "jellyfin/jellyfin:10.8.10" image: "jellyfin/jellyfin:10.8.10"
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -16,7 +16,6 @@ services:
- 1panel-network - 1panel-network
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
kubepi: kubepi:
image: kubeoperator/kubepi-server:v1.6.4 image: kubeoperator/kubepi-server:v1.6.4
@ -13,7 +13,6 @@ services:
privileged: true privileged: true
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -8,10 +8,3 @@ additionalProperties:
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
lskypro: lskypro:
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
@ -6,7 +6,7 @@ services:
networks: networks:
- 1panel-network - 1panel-network
volumes: volumes:
- "${DATA_PATH}:/var/www/html/" - ./data:/var/www/html/
ports: ports:
- "${PANEL_APP_PORT_HTTP}:8089" - "${PANEL_APP_PORT_HTTP}:8089"
environment: environment:
@ -14,7 +14,6 @@ services:
image: halcyonazure/lsky-pro-docker:latest image: halcyonazure/lsky-pro-docker:latest
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -14,7 +14,6 @@ services:
MYSQL_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD} MYSQL_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD}
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
halo: halo:
image: kingwrcy/mblog:1.0.9 image: kingwrcy/mblog:1.0.9
@ -14,7 +14,6 @@ services:
- ${PANEL_APP_PORT_HTTP}:38321 - ${PANEL_APP_PORT_HTTP}:38321
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -22,7 +22,6 @@ services:
- ./data:/data - ./data:/data
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -15,7 +15,6 @@ services:
- ./data:/data/db - ./data:/data/db
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -21,7 +21,6 @@ services:
createdBy: "Apps" createdBy: "Apps"
command: command:
- --default-authentication-plugin=mysql_native_password - --default-authentication-plugin=mysql_native_password
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -14,7 +14,6 @@ services:
- 1panel-network - 1panel-network
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -24,17 +24,3 @@ additionalProperties:
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- default: ./data/data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text
- default: ./data/ssl
edit: true
envKey: SSL_PATH
labelEn: SSL folder path
labelZh: 证书文件夹路径
required: true
type: text

View File

@ -10,12 +10,11 @@ services:
- "${PANEL_APP_PORT_HTTP}:81" - "${PANEL_APP_PORT_HTTP}:81"
- "${PANEL_APP_PORT_HTTP2}:443" - "${PANEL_APP_PORT_HTTP2}:443"
volumes: volumes:
- "${DATA_PATH}:/data" - ./data/data:/data
- "${SSL_PATH}:/etc/letsencrypt" - ./data/ssl:/etc/letsencrypt
image: jc21/nginx-proxy-manager:github-pr-3027 image: jc21/nginx-proxy-manager:github-pr-3027
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
nps: nps:
image: yisier1/nps:v0.26.16 image: yisier1/nps:v0.26.16
@ -28,7 +28,6 @@ services:
- 1panel-network - 1panel-network
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
1panel-php: 1panel-php:
build: build:

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
php: php:
image: ${IMAGE_NAME} image: ${IMAGE_NAME}

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
1panel-php: 1panel-php:
build: build:

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
php: php:
image: ${IMAGE_NAME} image: ${IMAGE_NAME}

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
1panel-php: 1panel-php:
build: build:

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
php: php:
image: ${IMAGE_NAME} image: ${IMAGE_NAME}

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
1panel-php: 1panel-php:
build: build:

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
php: php:
image: ${IMAGE_NAME} image: ${IMAGE_NAME}

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
1panel-php: 1panel-php:
build: build:

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
php: php:
image: ${IMAGE_NAME} image: ${IMAGE_NAME}

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
1panel-php: 1panel-php:
build: build:

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
php: php:
image: ${IMAGE_NAME} image: ${IMAGE_NAME}

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
1panel-php: 1panel-php:
build: build:

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
php: php:
image: ${IMAGE_NAME} image: ${IMAGE_NAME}

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
1panel-php: 1panel-php:
build: build:

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
php: php:
image: ${IMAGE_NAME} image: ${IMAGE_NAME}

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
1panel-php: 1panel-php:
build: build:

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
php: php:
image: ${IMAGE_NAME} image: ${IMAGE_NAME}

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
1panel-php: 1panel-php:
build: build:

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
php: php:
image: ${IMAGE_NAME} image: ${IMAGE_NAME}

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
1panel-php: 1panel-php:
build: build:

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
php: php:
image: ${IMAGE_NAME} image: ${IMAGE_NAME}

View File

@ -15,7 +15,6 @@ services:
- 1panel-network - 1panel-network
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -8,13 +8,6 @@ additionalProperties:
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text
- default: AESPWD - default: AESPWD
envKey: AES_PWD envKey: AES_PWD
labelEn: AES encryption key labelEn: AES encryption key

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
qiandao: qiandao:
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
@ -8,7 +8,7 @@ services:
ports: ports:
- "${PANEL_APP_PORT_HTTP}:80" - "${PANEL_APP_PORT_HTTP}:80"
volumes: volumes:
- "${DATA_PATH}:/usr/src/app/config" - ./data:/usr/src/app/config
environment: environment:
# 监听地址 # 监听地址
# - BIND=0.0.0.0 # - BIND=0.0.0.0
@ -147,7 +147,6 @@ services:
# image: a76yyyy/qiandao:lite-latest # image: a76yyyy/qiandao:lite-latest
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -7,18 +7,4 @@ additionalProperties:
labelZh: 网页端口 labelZh: 网页端口
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- default: ./data/data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text
- default: ./data/mnt
edit: true
envKey: MOUNT_PATH
labelEn: Mount folder path
labelZh: 挂载文件夹路径
required: true
type: text

View File

@ -1,18 +1,17 @@
version: '2' version: '3'
services: services:
qinglong: qinglong:
# alpine 基础镜像版本
image: whyour/qinglong:2.15.17 image: whyour/qinglong:2.15.17
container_name: ${CONTAINER_NAME} #固定写法,勿改 container_name: ${CONTAINER_NAME}
networks: networks:
- 1panel-network - 1panel-network
# debian-slim 基础镜像版本
# image: whyour/qinglong:debian
volumes: volumes:
- "${DATA_PATH}:/opt/qinglong/data" - ./data:/ql/data
ports: ports:
- "${PANEL_APP_PORT_HTTP}:5700" - "${PANEL_APP_PORT_HTTP}:5700"
restart: always restart: always
networks: labels:
1panel-network: createdBy: "Apps"
networks:
1panel-network:
external: true external: true

View File

@ -1,6 +1,4 @@
networks: version: '3'
1panel-network:
external: true
services: services:
redis-commander-XnlR: redis-commander-XnlR:
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
@ -17,4 +15,6 @@ services:
ports: ports:
- ${PANEL_APP_PORT_HTTP}:8081 - ${PANEL_APP_PORT_HTTP}:8081
restart: always restart: always
version: "3" networks:
1panel-network:
external: true

View File

@ -15,7 +15,6 @@ services:
- ./logs:/logs - ./logs:/logs
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -15,7 +15,6 @@ services:
- ./logs:/logs - ./logs:/logs
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
synapse: synapse:
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
tailchat: tailchat:
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
@ -25,7 +25,6 @@ services:
- ${PANEL_APP_PORT_HTTP}:11000 - ${PANEL_APP_PORT_HTTP}:11000
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -24,7 +24,6 @@ services:
- ./data:/app - ./data:/app
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -13,7 +13,6 @@ services:
- ${PANEL_APP_PORT_HTTP}:3001 - ${PANEL_APP_PORT_HTTP}:3001
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
watchtower: watchtower:
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
@ -14,7 +14,6 @@ services:
image: containrrr/watchtower image: containrrr/watchtower
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -1,4 +1,4 @@
version: "3" version: '3'
services: services:
wiki: wiki:
image: requarks/wiki:2.5.299 image: requarks/wiki:2.5.299
@ -17,7 +17,6 @@ services:
DB_NAME: ${PANEL_DB_NAME} DB_NAME: ${PANEL_DB_NAME}
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -19,7 +19,6 @@ services:
WORDPRESS_DEBUG: 0 WORDPRESS_DEBUG: 0
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

View File

@ -15,7 +15,6 @@ services:
- 1panel-network - 1panel-network
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true