nacos-docker/example/standalone-derby.yaml

33 lines
866 B
YAML
Raw Permalink Normal View History

2019-05-22 08:18:41 +00:00
version: "2"
services:
nacos:
image: nacos/nacos-server:${NACOS_VERSION}
2019-05-22 08:18:41 +00:00
container_name: nacos-standalone
environment:
- PREFER_HOST_MODE=hostname
- MODE=standalone
2023-05-31 05:50:15 +00:00
- NACOS_AUTH_IDENTITY_KEY=serverIdentity
- NACOS_AUTH_IDENTITY_VALUE=security
- NACOS_AUTH_TOKEN=SecretKey012345678901234567890123456789012345678901234567890123456789
2019-05-22 08:18:41 +00:00
volumes:
- ./standalone-logs/:/home/nacos/logs
2019-05-22 08:18:41 +00:00
ports:
- "8848:8848"
- "9848:9848"
2019-05-22 08:18:41 +00:00
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