|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- 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.6.1
- 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.6.1
- 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"
|