standalone-mysql-5.7.yaml 966 B

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