1
0

feat:添加vanblog到列表

This commit is contained in:
okxlin
2024-05-10 22:21:06 +08:00
parent 16e25f2d99
commit d238da2846
9 changed files with 291 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
CONTAINER_NAME="vanblog"
DATA_PATH="./data"
EMAIL=""
MONGO_DB="vanblog_8wksi3"
MONGO_HOST="mongodb"
PANEL_APP_PORT_HTTP="40233"
PANEL_APP_PORT_HTTPS="40234"
PANEL_DB_ROOT_PASSWORD="BJjH9dttfcqFBFnZbC9twpWZxF8EmQ"
PANEL_DB_ROOT_USER="mongo_k2EjZ3"
TIME_ZONE="Asia/Shanghai"
VAN_BLOG_CDN_URL=""
VAN_BLOG_WALINE_DB="waline"

View File

@@ -0,0 +1,86 @@
additionalProperties:
formFields:
- default: 40233
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: HTTP 端口
required: true
rule: paramPort
type: number
- default: 40234
edit: true
envKey: PANEL_APP_PORT_HTTPS
labelEn: Port
labelZh: HTTPS 端口
required: true
rule: paramPort
type: number
- default: "./data"
edit: true
envKey: DATA_PATH
labelEn: Data Path
labelZh: 数据路径
required: true
type: text
- default: "Asia/Shanghai"
edit: true
envKey: TIME_ZONE
labelEn: Time Zone
labelZh: 时区
required: true
type: text
- default: ""
edit: true
envKey: EMAIL
labelEn: Mailbox for automatic https certificate application
labelZh: 用于自动申请 https 证书的邮箱
required: false
type: text
- default: ""
edit: true
envKey: VAN_BLOG_CDN_URL
labelEn: CDN URL
labelZh: CDN 地址
required: false
type: text
- default: "waline"
envKey: VAN_BLOG_WALINE_DB
labelEn: Database name of the embedded commenting system
labelZh: 内嵌评论系统的数据库名
required: false
type: text
edit: true
- default: ""
edit: true
envKey: MONGO_HOST
key: mongodb
labelEn: Database Service
labelZh: 数据库服务
required: true
type: service
- default: "vanblog"
edit: true
envKey: MONGO_DB
labelEn: Database Name
labelZh: 数据库名
random: true
required: true
rule: paramCommon
type: text
- default: ""
edit: true
envKey: PANEL_DB_ROOT_USER
labelEn: Database User Name
labelZh: 数据库用户名
required: true
rule: paramCommon
type: text
- default: ""
edit: true
envKey: PANEL_DB_ROOT_PASSWORD
labelEn: Database User Password
labelZh: 数据库密码
required: true
rule: paramCommon
type: password

View File

@@ -0,0 +1,28 @@
version: '3'
services:
vanblog:
image: mereith/van-blog:v0.54.0
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:80"
- "${PANEL_APP_PORT_HTTPS}:443"
volumes:
- ${DATA_PATH}/data/static:/app/static
- ${DATA_PATH}/log:/var/log
- ${DATA_PATH}/caddy/config:/root/.config/caddy
- ${DATA_PATH}/caddy/data:/root/.local/share/caddy
environment:
- TZ=${TIME_ZONE}
- EMAIL=${EMAIL}
- VAN_BLOG_CDN_URL=${VAN_BLOG_CDN_URL}
- VAN_BLOG_WALINE_DB=${VAN_BLOG_WALINE_DB}
- VAN_BLOG_DATABASE_URL=mongodb://${PANEL_DB_ROOT_USER}:${PANEL_DB_ROOT_PASSWORD}@${MONGO_HOST}:27017/${MONGO_DB}?authSource=admin
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true