docker-base.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. version: '3'
  2. services:
  3. rabbitmq:
  4. image: rabbitmq:management
  5. container_name: rabbitmq
  6. ports:
  7. - "5671:5671"
  8. - "5672:5672"
  9. - "4369:4369"
  10. - "15671:15671"
  11. - "15672:15672"
  12. - "25672:25672"
  13. networks:
  14. - saas
  15. mongodb:
  16. image: mongo
  17. container_name: mongodb
  18. ports:
  19. - "27017:27017"
  20. volumes:
  21. - /data/mongodb:/data/db
  22. environment:
  23. MONGO_INITDB_ROOT_USERNAME: root
  24. MONGO_INITDB_ROOT_PASSWORD: select111***
  25. networks:
  26. - saas
  27. # mysql:
  28. # image: mysql:5.7
  29. # container_name: mysql
  30. # ports:
  31. # - "3306:3306"
  32. # environment:
  33. # MYSQL_ROOT_PASSWORD: select111***
  34. # volumes:
  35. # - ./data:/var/lib/mysql
  36. # - ./mysql/my.cnf:/etc/my.cnf
  37. # - ./mysql/init:/docker-entrypoint-initdb.d/
  38. # networks:
  39. # - saas
  40. # Elasticsearch, Logstash, Kibana
  41. # git clone https://github.com/deviantony/docker-elk.git
  42. # cd docker-elk
  43. # docker-compose up -d
  44. # 5000: Logstash TCP input
  45. # 9200: Elasticsearch HTTP
  46. # 9300: Elasticsearch TCP transport
  47. # 5601: Kibana
  48. networks:
  49. saas:
  50. driver: bridge