feat: update safeline 9.0.3

This commit is contained in:
xiaoY233
2025-07-14 16:37:18 +08:00
parent f3fdda557b
commit 5a1611a284
3 changed files with 39 additions and 43 deletions

View File

@@ -5,29 +5,28 @@ services:
networks: networks:
1panel-network: 1panel-network:
ipv4_address: ${SUBNET_PREFIX}.234 ipv4_address: ${SUBNET_PREFIX}.234
image: chaitin/safeline-mgt:8.10.1 image: chaitin/safeline-mgt:9.0.3
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- ${SAFELINE_DIR}/resources/mgt:/app/data - ${SAFELINE_DIR}/resources/mgt:/app/data
- ${SAFELINE_DIR}/logs/nginx:/app/log/nginx:z - ${SAFELINE_DIR}/logs/nginx:/app/log/nginx:z
- ${SAFELINE_DIR}/resources/sock:/app/sock - ${SAFELINE_DIR}/resources/sock:/app/sock
- /var/run:/app/run - /var/run:/app/run
ports: ports:
- ${PANEL_APP_PORT_HTTP:-9443}:1443 - ${PANEL_APP_PORT_HTTP:-9443}:1443
healthcheck: healthcheck:
test: curl -k -f https://localhost:1443/api/open/health test: curl -k -f https://localhost:1443/api/open/health
environment: environment:
- MGT_PG=postgres://safeline-ce:${POSTGRES_PASSWORD}@safeline-pg/safeline-ce?sslmode=disable - MGT_PG=postgres://safeline-ce:${POSTGRES_PASSWORD}@safeline-pg/safeline-ce?sslmode=disable
logging: logging:
options: options:
max-size: "100m" max-size: 100m
max-file: "5" max-file: '5'
depends_on: depends_on:
- safeline-pg - safeline-pg
- safeline-fvm - safeline-fvm
labels: labels:
createdBy: Apps createdBy: Apps
safeline-detector: safeline-detector:
container_name: ${CONTAINER_NAME}-detector container_name: ${CONTAINER_NAME}-detector
restart: always restart: always
@@ -36,36 +35,34 @@ services:
ipv4_address: ${SUBNET_PREFIX}.235 ipv4_address: ${SUBNET_PREFIX}.235
image: chaitin/safeline-detector:8.10.1 image: chaitin/safeline-detector:8.10.1
volumes: volumes:
- ${SAFELINE_DIR}/resources/detector:/resources/detector - ${SAFELINE_DIR}/resources/detector:/resources/detector
- ${SAFELINE_DIR}/logs/detector:/logs/detector - ${SAFELINE_DIR}/logs/detector:/logs/detector
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
environment: environment:
- LOG_DIR=/logs/detector - LOG_DIR=/logs/detector
labels: labels:
createdBy: Apps createdBy: Apps
safeline-tengine: safeline-tengine:
container_name: ${CONTAINER_NAME}-tengine container_name: ${CONTAINER_NAME}-tengine
restart: always restart: always
image: chaitin/safeline-tengine:8.10.1 image: chaitin/safeline-tengine:8.10.1
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- /etc/resolv.conf:/etc/resolv.conf:ro - /etc/resolv.conf:/etc/resolv.conf:ro
- ${SAFELINE_DIR}/resources/nginx:/etc/nginx - ${SAFELINE_DIR}/resources/nginx:/etc/nginx
- ${SAFELINE_DIR}/resources/detector:/resources/detector - ${SAFELINE_DIR}/resources/detector:/resources/detector
- ${SAFELINE_DIR}/resources/chaos:/resources/chaos - ${SAFELINE_DIR}/resources/chaos:/resources/chaos
- ${SAFELINE_DIR}/logs/nginx:/var/log/nginx:z - ${SAFELINE_DIR}/logs/nginx:/var/log/nginx:z
- ${SAFELINE_DIR}/resources/cache:/usr/local/nginx/cache - ${SAFELINE_DIR}/resources/cache:/usr/local/nginx/cache
- ${SAFELINE_DIR}/resources/sock:/app/sock - ${SAFELINE_DIR}/resources/sock:/app/sock
environment: environment:
- TCD_MGT_API=https://${SUBNET_PREFIX}.234:1443/api/open/publish/server - TCD_MGT_API=https://${SUBNET_PREFIX}.234:1443/api/open/publish/server
- SNSERVER_ADDR=${SUBNET_PREFIX}.235:8000 - SNSERVER_ADDR=${SUBNET_PREFIX}.235:8000
ulimits: ulimits:
nofile: 131072 nofile: 131072
network_mode: host network_mode: host
labels: labels:
createdBy: Apps createdBy: Apps
safeline-luigi: safeline-luigi:
container_name: ${CONTAINER_NAME}-luigi container_name: ${CONTAINER_NAME}-luigi
restart: always restart: always
@@ -80,14 +77,13 @@ services:
- MGT_IP=${SUBNET_PREFIX}.234 - MGT_IP=${SUBNET_PREFIX}.234
logging: logging:
options: options:
max-size: "100m" max-size: 100m
max-file: "5" max-file: '5'
depends_on: depends_on:
- safeline-detector - safeline-detector
- safeline-mgt - safeline-mgt
labels: labels:
createdBy: Apps createdBy: Apps
safeline-fvm: safeline-fvm:
container_name: ${CONTAINER_NAME}-fvm container_name: ${CONTAINER_NAME}-fvm
restart: always restart: always
@@ -99,11 +95,10 @@ services:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
logging: logging:
options: options:
max-size: "100m" max-size: 100m
max-file: "5" max-file: '5'
labels: labels:
createdBy: Apps createdBy: Apps
safeline-pg: safeline-pg:
container_name: ${CONTAINER_NAME}-pg container_name: ${CONTAINER_NAME}-pg
restart: always restart: always
@@ -112,17 +107,19 @@ services:
ipv4_address: ${SUBNET_PREFIX}.232 ipv4_address: ${SUBNET_PREFIX}.232
image: chaitin/safeline-postgres:15.2 image: chaitin/safeline-postgres:15.2
volumes: volumes:
- ${SAFELINE_DIR}/resources/postgres/data:/var/lib/postgresql/data - ${SAFELINE_DIR}/resources/postgres/data:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
environment: environment:
- POSTGRES_USER=safeline-ce - POSTGRES_USER=safeline-ce
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
command: [postgres, -c, max_connections=600] command:
- postgres
- -c
- max_connections=600
healthcheck: healthcheck:
test: pg_isready -U safeline-ce -d safeline-ce test: pg_isready -U safeline-ce -d safeline-ce
labels: labels:
createdBy: Apps createdBy: Apps
safeline-chaos: safeline-chaos:
container_name: ${CONTAINER_NAME}-chaos container_name: ${CONTAINER_NAME}-chaos
restart: always restart: always
@@ -132,14 +129,13 @@ services:
image: chaitin/safeline-chaos:8.10.1 image: chaitin/safeline-chaos:8.10.1
logging: logging:
options: options:
max-size: "100m" max-size: 100m
max-file: "5" max-file: '5'
volumes: volumes:
- ${SAFELINE_DIR}/resources/sock:/app/sock - ${SAFELINE_DIR}/resources/sock:/app/sock
- ${SAFELINE_DIR}/resources/chaos:/app/chaos - ${SAFELINE_DIR}/resources/chaos:/app/chaos
labels: labels:
createdBy: Apps createdBy: Apps
networks: networks:
1panel-network: 1panel-network:
external: true external: true