mirror of
https://github.com/okxlin/appstore.git
synced 2026-02-25 04:17:40 +08:00
138 lines
4.0 KiB
YAML
138 lines
4.0 KiB
YAML
version: '3'
|
|
services:
|
|
safeline-management:
|
|
container_name: ${CONTAINER_NAME}-mgt-api
|
|
restart: always
|
|
networks:
|
|
1panel-network:
|
|
ipv4_address: ${SUBNET_PREFIX}.234
|
|
image: chaitin/safeline-mgt-api:latest
|
|
volumes:
|
|
- ${SAFELINE_DIR}/resources/management:/resources/management
|
|
- ${SAFELINE_DIR}/resources/nginx:/resources/nginx
|
|
- ${SAFELINE_DIR}/logs:/logs
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- ${PANEL_APP_PORT_HTTP:-9443}:1443
|
|
environment:
|
|
- MANAGEMENT_RESOURCES_DIR=/resources/management
|
|
- NGINX_RESOURCES_DIR=/resources/nginx
|
|
- DATABASE_URL=postgres://safeline-ce:${POSTGRES_PASSWORD}@safeline-postgres/safeline-ce
|
|
- MARIO_URL=http://safeline-mario:3335
|
|
- DETECTOR_URL=http://safeline-detector:8001
|
|
- REDIS_URL=redis://:${PANEL_REDIS_ROOT_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}/0
|
|
- MANAGEMENT_LOGS_DIR=/logs/management
|
|
dns:
|
|
- 119.29.29.29
|
|
- 223.5.5.5
|
|
- 180.76.76.76
|
|
- 1.2.4.8
|
|
- 114.114.114.114
|
|
- 8.8.8.8
|
|
cap_drop:
|
|
- net_raw
|
|
labels:
|
|
createdBy: Apps
|
|
|
|
safeline-detector:
|
|
container_name: ${CONTAINER_NAME}-detector
|
|
restart: always
|
|
networks:
|
|
1panel-network:
|
|
ipv4_address: ${SUBNET_PREFIX}.235
|
|
image: chaitin/safeline-detector:latest
|
|
volumes:
|
|
- ${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:
|
|
- net_raw
|
|
labels:
|
|
createdBy: Apps
|
|
|
|
safeline-mario:
|
|
container_name: ${CONTAINER_NAME}-mario
|
|
restart: always
|
|
networks:
|
|
1panel-network:
|
|
ipv4_address: ${SUBNET_PREFIX}.236
|
|
image: chaitin/safeline-mario:latest
|
|
volumes:
|
|
- ${SAFELINE_DIR}/resources/mario:/resources/mario
|
|
- ${SAFELINE_DIR}/logs/mario:/logs/mario
|
|
- /etc/localtime:/etc/localtime:ro
|
|
environment:
|
|
- 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:
|
|
createdBy: Apps
|
|
|
|
safeline-tengine:
|
|
container_name: ${CONTAINER_NAME}-tengine
|
|
restart: always
|
|
image: chaitin/safeline-tengine:latest
|
|
volumes:
|
|
- ${SAFELINE_DIR}/resources/nginx:/etc/nginx
|
|
- ${SAFELINE_DIR}/resources/management:/resources/management
|
|
- ${SAFELINE_DIR}/resources/detector:/resources/detector
|
|
- ${SAFELINE_DIR}/logs/nginx:/var/log/nginx
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- ${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
|
|
ulimits:
|
|
nofile: 131072
|
|
network_mode: host
|
|
labels:
|
|
createdBy: Apps
|
|
|
|
safeline-postgres:
|
|
container_name: ${CONTAINER_NAME}-postgres
|
|
restart: always
|
|
networks:
|
|
1panel-network:
|
|
ipv4_address: ${SUBNET_PREFIX}.232
|
|
image: postgres:15.4-bookworm
|
|
volumes:
|
|
- ${SAFELINE_DIR}/resources/postgres/data:/var/lib/postgresql/data
|
|
- /etc/localtime:/etc/localtime:ro
|
|
environment:
|
|
- POSTGRES_USER=safeline-ce
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
cap_drop:
|
|
- net_raw
|
|
command: [postgres, -c, max_connections=200]
|
|
labels:
|
|
createdBy: Apps
|
|
|
|
safeline-redis:
|
|
container_name: ${CONTAINER_NAME}-redis
|
|
restart: always
|
|
networks:
|
|
1panel-network:
|
|
ipv4_address: ${SUBNET_PREFIX}.233
|
|
image: redis:7.2.2
|
|
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 |