cluster-embedded.yaml 1021 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. version: "3"
  2. services:
  3. nacos1:
  4. hostname: nacos1
  5. container_name: nacos1
  6. image: nacos/nacos-server:1.3.0
  7. volumes:
  8. - ./cluster-logs/nacos1:/home/nacos/logs
  9. - ./init.d/custom.properties:/home/nacos/init.d/custom.properties
  10. ports:
  11. - "8848:8848"
  12. - "9555:9555"
  13. env_file:
  14. - ../env/nacos-embedded.env
  15. restart: always
  16. nacos2:
  17. hostname: nacos2
  18. image: nacos/nacos-server:1.3.0
  19. container_name: nacos2
  20. volumes:
  21. - ./cluster-logs/nacos2:/home/nacos/logs
  22. - ./init.d/custom.properties:/home/nacos/init.d/custom.properties
  23. ports:
  24. - "8849:8848"
  25. env_file:
  26. - ../env/nacos-embedded.env
  27. restart: always
  28. nacos3:
  29. hostname: nacos3
  30. image: nacos/nacos-server:1.3.0
  31. container_name: nacos3
  32. volumes:
  33. - ./cluster-logs/nacos3:/home/nacos/logs
  34. - ./init.d/custom.properties:/home/nacos/init.d/custom.properties
  35. ports:
  36. - "8850:8848"
  37. env_file:
  38. - ../env/nacos-embedded.env
  39. restart: always