my-standalone-mysql-5.7.yaml 830 B

1234567891011121314151617181920212223242526272829303132333435
  1. version: "2"
  2. services:
  3. nacos:
  4. image: nacos/nacos-server:latest
  5. container_name: nacos-standalone-mysql
  6. env_file:
  7. - ../env/my-nacos-standlone-mysql.env
  8. volumes:
  9. - ./standalone-logs/:/var/log/nacos
  10. - ./init.d/custom.properties:/home/nacos/init.d/custom.properties
  11. ports:
  12. - "8848:8848"
  13. - "9555:9555"
  14. network_mode: "host"
  15. restart: on-failure
  16. prometheus:
  17. container_name: prometheus
  18. image: prom/prometheus:latest
  19. volumes:
  20. - ./prometheus/prometheus-standalone.yaml:/etc/prometheus/prometheus.yml
  21. ports:
  22. - "9090:9090"
  23. depends_on:
  24. - nacos
  25. network_mode: "host"
  26. restart: on-failure
  27. grafana:
  28. container_name: grafana
  29. image: grafana/grafana:latest
  30. ports:
  31. - 3000:3000
  32. network_mode: "host"
  33. restart: on-failure