mirror of
https://github.com/okxlin/appstore.git
synced 2026-03-04 15:58:03 +08:00
98 lines
2.9 KiB
YAML
98 lines
2.9 KiB
YAML
version: '3'
|
|
services:
|
|
safeline-management:
|
|
container_name: ${CONTAINER_NAME}-mgt-api
|
|
restart: always
|
|
networks:
|
|
safeline-ce:
|
|
ipv4_address: ${SUBNET_PREFIX}.4
|
|
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://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
|
|
- MARIO_URL=http://safeline-mario:3335
|
|
- DETECTOR_URL=http://safeline-detector:8001
|
|
- MANAGEMENT_LOGS_DIR=/logs/management
|
|
cap_drop:
|
|
- net_raw
|
|
labels:
|
|
createdBy: Apps
|
|
|
|
safeline-detector:
|
|
container_name: ${CONTAINER_NAME}-detector
|
|
restart: always
|
|
networks:
|
|
safeline-ce:
|
|
ipv4_address: ${SUBNET_PREFIX}.5
|
|
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
|
|
cap_drop:
|
|
- net_raw
|
|
labels:
|
|
createdBy: Apps
|
|
|
|
safeline-mario:
|
|
container_name: ${CONTAINER_NAME}-mario
|
|
restart: always
|
|
networks:
|
|
safeline-ce:
|
|
ipv4_address: ${SUBNET_PREFIX}.6
|
|
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://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
|
|
- REDIS_URL=redis://:${REDIS_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:
|
|
- MGT_ADDR=${SUBNET_PREFIX}.4:9002
|
|
ulimits:
|
|
nofile: 131072
|
|
network_mode: host
|
|
labels:
|
|
createdBy: Apps
|
|
|
|
networks:
|
|
safeline-ce:
|
|
name: safeline-ce
|
|
driver: bridge
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- gateway: ${SUBNET_PREFIX:?SUBNET_PREFIX required}.1
|
|
subnet: ${SUBNET_PREFIX}.0/24
|
|
driver_opts:
|
|
com.docker.network.bridge.name: safeline-ce |