2019-05-22 08:18:41 +00:00
|
|
|
version: "2"
|
|
|
|
services:
|
|
|
|
nacos:
|
|
|
|
image: nacos/nacos-server:latest
|
|
|
|
container_name: nacos-standalone-mysql
|
2020-02-16 06:55:11 +00:00
|
|
|
env_file:
|
|
|
|
- ../env/nacos-standlone-mysql.env
|
2019-05-22 08:18:41 +00:00
|
|
|
volumes:
|
|
|
|
- ./standalone-logs/:/home/nacos/logs
|
|
|
|
- ./init.d/custom.properties:/home/nacos/init.d/custom.properties
|
|
|
|
ports:
|
|
|
|
- "8848:8848"
|
|
|
|
- "9555:9555"
|
|
|
|
depends_on:
|
2020-02-16 06:55:11 +00:00
|
|
|
- mysql
|
2019-05-22 08:18:41 +00:00
|
|
|
restart: on-failure
|
2020-02-16 06:55:11 +00:00
|
|
|
mysql:
|
|
|
|
container_name: mysql
|
2020-02-16 09:01:58 +00:00
|
|
|
image: nacos/nacos-mysql:5.7
|
2019-05-22 08:18:41 +00:00
|
|
|
env_file:
|
2020-02-16 06:55:11 +00:00
|
|
|
- ../env/mysql.env
|
2019-05-22 08:18:41 +00:00
|
|
|
volumes:
|
2020-02-16 06:55:11 +00:00
|
|
|
- ./mysql:/var/lib/mysql
|
2019-05-22 08:18:41 +00:00
|
|
|
ports:
|
|
|
|
- "3306:3306"
|
|
|
|
prometheus:
|
|
|
|
container_name: prometheus
|
|
|
|
image: prom/prometheus:latest
|
|
|
|
volumes:
|
|
|
|
- ./prometheus/prometheus-standalone.yaml:/etc/prometheus/prometheus.yml
|
|
|
|
ports:
|
|
|
|
- "9090:9090"
|
|
|
|
depends_on:
|
|
|
|
- nacos
|
|
|
|
restart: on-failure
|
|
|
|
grafana:
|
|
|
|
container_name: grafana
|
|
|
|
image: grafana/grafana:latest
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
|
|
|
restart: on-failure
|
|
|
|
|