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

167 lines
4.3 KiB
YAML
Raw Normal View History

2023-11-09 19:15:01 +08:00
version: '3'
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
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
2023-11-09 19:15:01 +08:00
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
2024-02-04 21:16:19 +08:00
logging:
options:
max-size: "100m"
max-file: "10"
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-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
2024-01-05 20:55:40 +08:00
- DATABASE_URL=postgres://safeline-ce:${POSTGRES_PASSWORD}@safeline-pg/safeline-ce
2023-11-09 19:15:01 +08:00
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
- ${SAFELINE_DIR}/logs/nginx:/var/log/nginx
- ${SAFELINE_DIR}/resources/cache:/usr/local/nginx/cache
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
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
labels:
createdBy: Apps
2024-02-04 21:16:19 +08:00
safeline-bridge:
container_name: ${CONTAINER_NAME}-bridge
restart: always
networks:
1panel-network:
ipv4_address: ${SUBNET_PREFIX}.239
image: chaitin/safeline-bridge:latest
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run:/app/run
command:
- /app/bridge
- serve
- -n
- unix
- -a
- /app/run/safeline.sock
logging:
options:
max-size: "100m"
max-file: "10"
depends_on:
- safeline-mgt
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
2024-02-25 15:23:26 +08:00
image: postgres:15.6
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}
command: [postgres, -c, max_connections=200]
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
networks:
1panel-network:
external: true