nightingale/docker-compose.yml

91 lines
1.5 KiB
YAML
Raw Normal View History

2020-03-23 00:05:53 +08:00
version: "3"
2020-04-10 10:52:13 +08:00
2020-03-23 00:05:53 +08:00
volumes:
mysql-data:
2020-04-10 10:52:13 +08:00
2020-03-23 00:42:22 +08:00
services:
nginx:
image: nginx:stable-alpine
2020-04-10 10:52:13 +08:00
network_mode: host
2020-03-23 00:42:22 +08:00
ports:
- 80:80
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/conf.d:/etc/nginx/conf.d
- ./pub:/home/n9e/pub
2020-04-10 10:52:13 +08:00
nightingale:
2020-03-23 00:05:53 +08:00
build: .
2020-04-10 10:52:13 +08:00
image: nightingale
2020-03-23 00:05:53 +08:00
monapi:
2020-04-10 10:52:13 +08:00
image: nightingale
network_mode: host
2020-03-23 00:05:53 +08:00
restart: always
2020-03-23 14:21:27 +08:00
command: n9e-monapi
2020-03-23 00:05:53 +08:00
ports:
2020-03-23 00:42:22 +08:00
- 5800:5800
2020-03-23 13:46:52 +08:00
transfer:
2020-04-10 10:52:13 +08:00
image: nightingale
network_mode: host
2020-03-23 13:46:52 +08:00
restart: always
2020-03-23 14:21:27 +08:00
command: n9e-transfer
2020-03-23 13:46:52 +08:00
ports:
- 5810:5810
- 5811:5811
2020-03-23 01:05:17 +08:00
2020-03-23 13:46:52 +08:00
tsdb:
2020-04-10 10:52:13 +08:00
image: nightingale
network_mode: host
2020-03-23 13:46:52 +08:00
restart: always
2020-03-23 14:21:27 +08:00
command: n9e-tsdb
2020-03-23 13:46:52 +08:00
ports:
- 5820:5820
- 5821:5821
2020-03-23 01:05:17 +08:00
index:
2020-04-10 10:52:13 +08:00
image: nightingale
network_mode: host
2020-03-23 01:05:17 +08:00
restart: always
2020-03-23 14:21:27 +08:00
command: n9e-index
2020-03-23 01:05:17 +08:00
ports:
- 5830:5830
- 5831:5831
2020-03-23 13:46:52 +08:00
judge:
2020-04-10 10:52:13 +08:00
image: nightingale
network_mode: host
2020-03-23 01:05:17 +08:00
restart: always
2020-03-23 14:21:27 +08:00
command: n9e-judge
2020-03-23 01:05:17 +08:00
ports:
2020-03-23 13:46:52 +08:00
- 5840:5840
- 5841:5841
collector:
2020-04-10 10:52:13 +08:00
image: nightingale
network_mode: host
2020-03-23 13:46:52 +08:00
restart: always
2020-03-23 14:21:27 +08:00
command: n9e-collector
2020-03-23 13:46:52 +08:00
ports:
- 2058:2058
2020-03-23 00:05:53 +08:00
redis:
image: redis
2020-04-10 10:52:13 +08:00
network_mode: host
2020-03-23 00:05:53 +08:00
restart: always
ports:
- 6379:6379
mysql:
image: mysql:5.7
2020-04-10 10:52:13 +08:00
network_mode: host
2020-03-23 00:05:53 +08:00
restart: always
environment:
- MYSQL_ROOT_PASSWORD=1234
ports:
- 3306:3306
volumes:
- ./sql:/docker-entrypoint-initdb.d
- mysql-data:/var/lib/mysql