1
0

精简提交历史记录

This commit is contained in:
okxlin
2023-11-09 19:15:01 +08:00
commit 691aa7aac9
1529 changed files with 800341 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
CONTAINER_NAME="wireguard-ui"
DATA_PATH="./data"
PANEL_APP_PORT_HTTP="40073"
WEBUI_PWD="password"
WEBUI_USER="admin"
WIREGUARD_PORT="51820"

View File

@@ -0,0 +1,41 @@
additionalProperties:
formFields:
- default: 40073
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: WebUI Port
labelZh: 网页端口
required: true
rule: paramPort
type: number
- default: 51820
edit: true
envKey: WIREGUARD_PORT
labelEn: Wireguard port
labelZh: Wireguard端口
required: true
rule: paramPort
type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text
- default: "admin"
edit: true
envKey: WEBUI_USER
labelEn: Webui user
labelZh: 网页用户
required: true
type: text
- default: "password"
edit: true
envKey: WEBUI_PWD
labelEn: Webui password
labelZh: 网页密码
random: false
required: false
rule: paramComplexity
type: password

View File

@@ -0,0 +1,51 @@
version: "3"
services:
wireguard:
container_name: ${CONTAINER_NAME}-wireguard
restart: always
networks:
- 1panel-network
cap_add:
- NET_ADMIN
volumes:
- ${DATA_PATH}/config:/config
ports:
- "${PANEL_APP_PORT_HTTP}:5000"
- "${WIREGUARD_PORT}:51820/udp"
image: linuxserver/wireguard:latest
labels:
createdBy: "Apps"
wireguard-ui:
container_name: ${CONTAINER_NAME}
restart: always
depends_on:
- wireguard
cap_add:
- NET_ADMIN
network_mode: service:wireguard
environment:
- SENDGRID_API_KEY
- EMAIL_FROM_ADDRESS
- EMAIL_FROM_NAME
- SESSION_SECRET
- WGUI_USERNAME=${WEBUI_USER}
- WGUI_PASSWORD=${WEBUI_PWD}
- WG_CONF_TEMPLATE
- WGUI_MANAGE_START=true
- WGUI_MANAGE_RESTART=true
volumes:
- ${DATA_PATH}/db:/app/db
- ${DATA_PATH}/config:/etc/wireguard
image: ngoduykhanh/wireguard-ui:latest
logging:
driver: json-file
options:
max-size: 50m
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true