1
0
1Panel-Appstore/apps/safeline/latest/docker-compose.yml

145 lines
3.9 KiB
YAML
Raw Normal View History

2023-11-09 19:15:01 +08:00
services:
2024-01-05 20:55:40 +08:00
safeline-mgt:
container_name: ${CONTAINER_NAME}-mgt
2023-11-09 19:15:01 +08:00
restart: always
networks:
1panel-network:
ipv4_address: ${SUBNET_PREFIX}.234
2024-01-05 20:55:40 +08:00
image: chaitin/safeline-mgt:latest
2023-11-09 19:15:01 +08:00
volumes:
- /etc/localtime:/etc/localtime:ro
2024-01-05 20:55:40 +08:00
- ${SAFELINE_DIR}/resources/mgt:/app/data
2024-06-17 23:27:27 +08:00
- ${SAFELINE_DIR}/logs/nginx:/app/log/nginx:z
2024-09-12 23:26:49 +08:00
- ${SAFELINE_DIR}/resources/sock:/app/sock
2024-10-20 12:14:27 +08:00
- /var/run:/app/run
2023-11-09 19:15:01 +08:00
ports:
- ${PANEL_APP_PORT_HTTP:-9443}:1443
2024-03-19 10:27:48 +08:00
healthcheck:
test: curl -k -f https://localhost:1443/api/open/health
2023-11-09 19:15:01 +08:00
environment:
2024-01-05 20:55:40 +08:00
- MGT_PG=postgres://safeline-ce:${POSTGRES_PASSWORD}@safeline-pg/safeline-ce?sslmode=disable
2024-02-04 21:16:19 +08:00
logging:
options:
max-size: "100m"
2024-05-23 22:18:30 +08:00
max-file: "5"
2024-01-05 20:55:40 +08:00
depends_on:
- safeline-pg
- safeline-fvm
2023-11-09 19:15:01 +08:00
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
environment:
- LOG_DIR=/logs/detector
labels:
createdBy: Apps
safeline-tengine:
container_name: ${CONTAINER_NAME}-tengine
restart: always
image: chaitin/safeline-tengine:latest
volumes:
2024-01-05 20:55:40 +08:00
- /etc/localtime:/etc/localtime:ro
2024-02-29 21:30:40 +08:00
- /etc/resolv.conf:/etc/resolv.conf:ro
2023-11-09 19:15:01 +08:00
- ${SAFELINE_DIR}/resources/nginx:/etc/nginx
- ${SAFELINE_DIR}/resources/detector:/resources/detector
2024-06-06 21:51:59 +08:00
- ${SAFELINE_DIR}/resources/chaos:/resources/chaos
2024-06-17 23:27:27 +08:00
- ${SAFELINE_DIR}/logs/nginx:/var/log/nginx:z
2023-11-09 19:15:01 +08:00
- ${SAFELINE_DIR}/resources/cache:/usr/local/nginx/cache
2024-09-12 23:26:49 +08:00
- ${SAFELINE_DIR}/resources/sock:/app/sock
2023-11-09 19:15:01 +08:00
environment:
2024-01-05 20:55:40 +08:00
- TCD_MGT_API=https://${SUBNET_PREFIX}.234:1443/api/open/publish/server
- SNSERVER_ADDR=${SUBNET_PREFIX}.235:8000
2023-11-09 19:15:01 +08:00
ulimits:
nofile: 131072
network_mode: host
labels:
createdBy: Apps
2024-01-05 20:55:40 +08:00
safeline-luigi:
container_name: ${CONTAINER_NAME}-luigi
restart: always
networks:
1panel-network:
ipv4_address: ${SUBNET_PREFIX}.237
image: chaitin/safeline-luigi:latest
volumes:
- /etc/localtime:/etc/localtime:ro
- ${SAFELINE_DIR}/resources/luigi:/app/data
2024-02-29 21:30:40 +08:00
environment:
- MGT_IP=${SUBNET_PREFIX}.234
2024-04-18 21:55:41 +08:00
logging:
options:
max-size: "100m"
2024-05-23 22:18:30 +08:00
max-file: "5"
2024-02-29 21:30:40 +08:00
depends_on:
- safeline-detector
- safeline-mgt
2024-01-05 20:55:40 +08:00
labels:
createdBy: Apps
safeline-fvm:
container_name: ${CONTAINER_NAME}-fvm
2023-11-23 20:49:05 +08:00
restart: always
networks:
1panel-network:
ipv4_address: ${SUBNET_PREFIX}.238
2024-01-05 20:55:40 +08:00
image: chaitin/safeline-fvm:latest
2023-11-23 20:49:05 +08:00
volumes:
- /etc/localtime:/etc/localtime:ro
2024-04-18 21:55:41 +08:00
logging:
options:
max-size: "100m"
2024-05-23 22:18:30 +08:00
max-file: "5"
2023-11-23 20:49:05 +08:00
labels:
createdBy: Apps
2024-01-05 20:55:40 +08:00
safeline-pg:
container_name: ${CONTAINER_NAME}-pg
2023-11-09 19:15:01 +08:00
restart: always
networks:
1panel-network:
ipv4_address: ${SUBNET_PREFIX}.232
2025-06-13 18:53:10 +08:00
image: chaitin/safeline-postgres:15.2
2023-11-09 19:15:01 +08:00
volumes:
- ${SAFELINE_DIR}/resources/postgres/data:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
environment:
- POSTGRES_USER=safeline-ce
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
2024-04-12 10:48:02 +08:00
command: [postgres, -c, max_connections=600]
2024-03-22 11:32:48 +08:00
healthcheck:
test: pg_isready -U safeline-ce -d safeline-ce
2023-11-09 19:15:01 +08:00
labels:
createdBy: Apps
2024-05-31 19:20:37 +08:00
safeline-chaos:
container_name: ${CONTAINER_NAME}-chaos
restart: always
networks:
1panel-network:
ipv4_address: ${SUBNET_PREFIX}.240
image: chaitin/safeline-chaos:latest
logging:
options:
max-size: "100m"
max-file: "5"
2024-06-06 21:51:59 +08:00
volumes:
2024-11-16 23:52:38 +08:00
- ${SAFELINE_DIR}/resources/sock:/app/sock
2024-06-06 21:51:59 +08:00
- ${SAFELINE_DIR}/resources/chaos:/app/chaos
2024-05-31 19:20:37 +08:00
labels:
createdBy: Apps
2023-11-09 19:15:01 +08:00
networks:
1panel-network:
external: true