1
0

feat:更新长亭雷池3.14.0

This commit is contained in:
okxlin
2023-11-30 17:20:33 +08:00
parent bc1761d32a
commit 2adfb91656
13 changed files with 46 additions and 280 deletions

View File

@@ -1,9 +1,5 @@
CONTAINER_NAME="safeline"
PANEL_APP_PORT_HTTP="40080"
PANEL_APP_PORT_HTTP2="40081"
POSTGRES_PASSWORD="password_xxJdZD"
REDIS_HOST="safeline-redis"
PANEL_REDIS_ROOT_PASSWORD="redis_password"
REDIS_PORT="6379"
SAFELINE_DIR="./data"
SUBNET_PREFIX="172.18.0"

View File

@@ -1,29 +1,5 @@
additionalProperties:
formFields:
- default: "safeline-redis"
disabled: true
envKey: REDIS_HOST
key: redis
labelEn: Redis Service
labelZh: Redis服务
required: true
type: text
- default: "6379"
disabled: true
envKey: REDIS_PORT
labelEn: Redis Service Port
labelZh: Redis服务端口
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: PANEL_REDIS_ROOT_PASSWORD
labelEn: Redis Service Password
labelZh: Redis服务密码
required: true
rule: paramCommon
type: password
- default: ""
edit: true
envKey: POSTGRES_PASSWORD
@@ -40,14 +16,6 @@ additionalProperties:
required: true
rule: paramPort
type: number
- default: 40081
edit: true
envKey: PANEL_APP_PORT_HTTP2
labelEn: Detector Port
labelZh: Detector端口
required: true
rule: paramPort
type: number
- default: ./data
edit: true
envKey: SAFELINE_DIR

View File

@@ -20,7 +20,6 @@ services:
- DATABASE_URL=postgres://safeline-ce:${POSTGRES_PASSWORD}@safeline-postgres/safeline-ce
- MARIO_URL=http://safeline-mario:3335
- FVM_MANAGER_URL=safeline-fvm-manager:9004
- REDIS_URL=redis://:${PANEL_REDIS_ROOT_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}/0
- MANAGEMENT_LOGS_DIR=/logs/management
dns:
- 119.29.29.29
@@ -45,8 +44,6 @@ services:
- ${SAFELINE_DIR}/resources/detector:/resources/detector
- ${SAFELINE_DIR}/logs/detector:/logs/detector
- /etc/localtime:/etc/localtime:ro
ports:
- ${PANEL_APP_PORT_HTTP2}:8000
environment:
- LOG_DIR=/logs/detector
cap_drop:
@@ -69,7 +66,6 @@ services:
- LOG_DIR=/logs/mario
- GOGC=100
- DATABASE_URL=postgres://safeline-ce:${POSTGRES_PASSWORD}@safeline-postgres/safeline-ce
- REDIS_URL=redis://:${PANEL_REDIS_ROOT_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}/0
cap_drop:
- net_raw
labels:
@@ -88,8 +84,7 @@ services:
- ${SAFELINE_DIR}/resources/cache:/usr/local/nginx/cache
- /etc/resolv.conf:/etc/resolv.conf
environment:
- REDIS_URL=redis://:${PANEL_REDIS_ROOT_PASSWORD}@${SUBNET_PREFIX}.233:${REDIS_PORT}/0
- MGT_ADDR=${SUBNET_PREFIX}.234:9002
- MGT_API=https://${SUBNET_PREFIX}.234:1443/api/publish/server
ulimits:
nofile: 131072
network_mode: host
@@ -133,24 +128,6 @@ services:
labels:
createdBy: Apps
safeline-redis:
container_name: ${CONTAINER_NAME}-redis
restart: always
networks:
1panel-network:
ipv4_address: ${SUBNET_PREFIX}.233
image: redis:7.2.3
volumes:
- ${SAFELINE_DIR}/resources/redis/data:/data
- /etc/localtime:/etc/localtime:ro
command: redis-server --appendonly yes --requirepass ${PANEL_REDIS_ROOT_PASSWORD}
cap_drop:
- net_raw
sysctls:
net.core.somaxconn: "511"
labels:
createdBy: Apps
networks:
1panel-network:
external: true