176 lines
3.4 KiB
YAML
176 lines
3.4 KiB
YAML
version: "3.7"
|
|
|
|
networks:
|
|
nightingale:
|
|
driver: bridge
|
|
|
|
services:
|
|
mysql:
|
|
image: "mysql:5.7"
|
|
container_name: mysql
|
|
hostname: mysql
|
|
restart: always
|
|
ports:
|
|
- "3306:3306"
|
|
environment:
|
|
TZ: Asia/Shanghai
|
|
MYSQL_ROOT_PASSWORD: 1234
|
|
volumes:
|
|
- ./mysqldata:/var/lib/mysql/
|
|
- ./initsql:/docker-entrypoint-initdb.d/
|
|
- ./mysqletc/my.cnf:/etc/my.cnf
|
|
networks:
|
|
- nightingale
|
|
|
|
redis:
|
|
image: "redis:6.2"
|
|
container_name: redis
|
|
hostname: redis
|
|
restart: always
|
|
ports:
|
|
- "6379:6379"
|
|
environment:
|
|
TZ: Asia/Shanghai
|
|
networks:
|
|
- nightingale
|
|
|
|
prometheus:
|
|
image: prom/prometheus
|
|
container_name: prometheus
|
|
hostname: prometheus
|
|
restart: always
|
|
environment:
|
|
TZ: Asia/Shanghai
|
|
volumes:
|
|
- ./prometc:/etc/prometheus
|
|
ports:
|
|
- "9090:9090"
|
|
networks:
|
|
- nightingale
|
|
command:
|
|
- "--config.file=/etc/prometheus/prometheus.yml"
|
|
- "--storage.tsdb.path=/prometheus"
|
|
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
|
|
- "--web.console.templates=/usr/share/prometheus/consoles"
|
|
- "--enable-feature=remote-write-receiver"
|
|
- "--query.lookback-delta=2m"
|
|
|
|
ibex:
|
|
image: ulric2019/ibex:0.2
|
|
container_name: ibex
|
|
hostname: ibex
|
|
restart: always
|
|
environment:
|
|
GIN_MODE: release
|
|
TZ: Asia/Shanghai
|
|
ports:
|
|
- "10090:10090"
|
|
- "20090:20090"
|
|
volumes:
|
|
- ./ibexetc:/app/etc
|
|
networks:
|
|
- nightingale
|
|
depends_on:
|
|
- mysql
|
|
links:
|
|
- mysql:mysql
|
|
command:
|
|
- "/app/ibex"
|
|
- "server"
|
|
|
|
nwebapi:
|
|
image: ulric2019/nightingale:5.5.0
|
|
container_name: nwebapi
|
|
hostname: nwebapi
|
|
restart: always
|
|
environment:
|
|
GIN_MODE: release
|
|
TZ: Asia/Shanghai
|
|
volumes:
|
|
- ./n9eetc:/app/etc
|
|
ports:
|
|
- "18000:18000"
|
|
networks:
|
|
- nightingale
|
|
depends_on:
|
|
- mysql
|
|
- redis
|
|
- prometheus
|
|
- ibex
|
|
links:
|
|
- mysql:mysql
|
|
- redis:redis
|
|
- prometheus:prometheus
|
|
- ibex:ibex
|
|
command:
|
|
- "/app/n9e"
|
|
- "webapi"
|
|
|
|
nserver:
|
|
image: ulric2019/nightingale:5.5.0
|
|
container_name: nserver
|
|
hostname: nserver
|
|
restart: always
|
|
environment:
|
|
GIN_MODE: release
|
|
TZ: Asia/Shanghai
|
|
volumes:
|
|
- ./n9eetc:/app/etc
|
|
ports:
|
|
- "19000:19000"
|
|
networks:
|
|
- nightingale
|
|
depends_on:
|
|
- mysql
|
|
- redis
|
|
- prometheus
|
|
- ibex
|
|
links:
|
|
- mysql:mysql
|
|
- redis:redis
|
|
- prometheus:prometheus
|
|
- ibex:ibex
|
|
command:
|
|
- "/app/n9e"
|
|
- "server"
|
|
|
|
telegraf:
|
|
image: "telegraf:1.20.3"
|
|
container_name: "telegraf"
|
|
hostname: "telegraf01"
|
|
restart: always
|
|
environment:
|
|
TZ: Asia/Shanghai
|
|
volumes:
|
|
- ./telegrafetc/telegraf.conf:/etc/telegraf/telegraf.conf
|
|
ports:
|
|
- "8125:8125/udp"
|
|
- "8092:8092/udp"
|
|
- "8094:8094/tcp"
|
|
networks:
|
|
- nightingale
|
|
depends_on:
|
|
- nserver
|
|
links:
|
|
- nserver:nserver
|
|
|
|
agentd:
|
|
image: ulric2019/ibex:0.2
|
|
container_name: agentd
|
|
hostname: agentd
|
|
restart: always
|
|
environment:
|
|
GIN_MODE: release
|
|
TZ: Asia/Shanghai
|
|
volumes:
|
|
- ./ibexetc:/app/etc
|
|
networks:
|
|
- nightingale
|
|
depends_on:
|
|
- ibex
|
|
links:
|
|
- ibex:ibex
|
|
command:
|
|
- "/app/ibex"
|
|
- "agentd"
|