88 lines
1.4 KiB
YAML
88 lines
1.4 KiB
YAML
version: "3"
|
|
volumes:
|
|
mysql-data:
|
|
services:
|
|
nginx:
|
|
image: nginx:stable-alpine
|
|
ports:
|
|
- 80:80
|
|
volumes:
|
|
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
|
|
- ./docker/nginx/conf.d:/etc/nginx/conf.d
|
|
- ./pub:/home/n9e/pub
|
|
api:
|
|
build: .
|
|
image: api
|
|
|
|
monapi:
|
|
image: api
|
|
restart: always
|
|
command: n9e-monapi
|
|
ports:
|
|
- 5800:5800
|
|
|
|
transfer:
|
|
image: api
|
|
restart: always
|
|
command: n9e-transfer
|
|
ports:
|
|
- 5810:5810
|
|
- 5811:5811
|
|
|
|
tsdb:
|
|
image: api
|
|
restart: always
|
|
command: n9e-tsdb
|
|
ports:
|
|
- 5820:5820
|
|
- 5821:5821
|
|
|
|
index:
|
|
image: api
|
|
restart: always
|
|
command: n9e-index
|
|
ports:
|
|
- 5830:5830
|
|
- 5831:5831
|
|
|
|
judge:
|
|
image: api
|
|
restart: always
|
|
command: n9e-judge
|
|
ports:
|
|
- 5840:5840
|
|
- 5841:5841
|
|
|
|
collector:
|
|
image: api
|
|
restart: always
|
|
command: n9e-collector
|
|
ports:
|
|
- 2058:2058
|
|
|
|
# web:
|
|
# build:
|
|
# context: web
|
|
# restart: always
|
|
# command: npm run dev
|
|
# ports:
|
|
# - 8010:8010
|
|
|
|
redis:
|
|
image: redis
|
|
restart: always
|
|
ports:
|
|
- 6379:6379
|
|
|
|
mysql:
|
|
image: mysql:5.7
|
|
restart: always
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=1234
|
|
ports:
|
|
- 3306:3306
|
|
volumes:
|
|
- ./sql:/docker-entrypoint-initdb.d
|
|
- mysql-data:/var/lib/mysql
|
|
|
|
|