|
|
|
@ -1,6 +1,34 @@
|
|
|
|
|
version: '3' |
|
|
|
|
services: |
|
|
|
|
|
|
|
|
|
nacos: |
|
|
|
|
image: nacos/nacos-server:latest |
|
|
|
|
container_name: nacos-standalone |
|
|
|
|
environment: |
|
|
|
|
- PREFER_HOST_MODE=hostname |
|
|
|
|
- MODE=standalone |
|
|
|
|
volumes: |
|
|
|
|
- ./standalone-logs/:/home/nacos/logs |
|
|
|
|
- ./init.d/custom.properties:/home/nacos/init.d/custom.properties |
|
|
|
|
ports: |
|
|
|
|
- "8848:8848" |
|
|
|
|
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 |
|
|
|
|
|
|
|
|
|
blade-nginx: |
|
|
|
|
image: nginx:stable-alpine-perl |
|
|
|
|
hostname: "blade-nginx" |
|
|
|
|