You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

158 lines
3.9 KiB

4 years ago
  1. # For more information: https://laravel.com/docs/sail
  2. version: '3'
  3. services:
  4. rabbitmq:
  5. image: "rabbitmq:3-management"
  6. ports:
  7. - 5672:5672
  8. - 15672:15672
  9. environment:
  10. RABBITMQ_ERLANG_COOKIE: "SWQOKODSQALRPCLNMEQG"
  11. RABBITMQ_DEFAULT_USER: "root"
  12. RABBITMQ_DEFAULT_PASS: "root"
  13. RABBITMQ_DEFAULT_VHOST: "/"
  14. networks:
  15. - hi-user
  16. volumes:
  17. - ./definitions.json:/etc/rabbitmq/definitions.json
  18. depends_on:
  19. - laravel.test
  20. minio:
  21. image: minio/minio
  22. command: server /data
  23. ports:
  24. - 9005:9000
  25. environment:
  26. MINIO_ACCESS_KEY: root
  27. MINIO_SECRET_KEY: minioroot
  28. networks:
  29. - hi-user
  30. depends_on:
  31. - laravel.test
  32. commander:
  33. image: rediscommander/redis-commander:latest
  34. environment:
  35. - REDIS_HOST=redis
  36. - REDIS_PORT=6379
  37. - HTTP_USER=root
  38. - HTTP_PASSWORD=root
  39. - REDIS_PASSWORD=root
  40. ports:
  41. - 8081:8081
  42. depends_on:
  43. - redis
  44. networks:
  45. - hi-user
  46. redis:
  47. image: redis:latest
  48. ports:
  49. - 6379:6379
  50. command: redis-server --requirepass root
  51. volumes:
  52. - redis-data:/data
  53. networks:
  54. - hi-user
  55. laravel.test:
  56. build:
  57. context: ./vendor/laravel/sail/runtimes/8.0
  58. dockerfile: Dockerfile
  59. args:
  60. WWWGROUP: '${WWWGROUP}'
  61. image: sail-8.0/app
  62. ports:
  63. - '${APP_PORT:-80}:80'
  64. container_name: "liwo-user-app"
  65. environment:
  66. WWWUSER: '${WWWUSER}'
  67. LARAVEL_SAIL: 1
  68. volumes:
  69. - '.:/var/www/html'
  70. networks:
  71. - hi-user
  72. - hi
  73. depends_on:
  74. - mysql
  75. mysql:
  76. image: 'mysql:8.0'
  77. ports:
  78. - '${FORWARD_DB_PORT:-3306}:3306'
  79. environment:
  80. MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
  81. MYSQL_DATABASE: '${DB_DATABASE}'
  82. MYSQL_USER: '${DB_USERNAME}'
  83. MYSQL_PASSWORD: '${DB_PASSWORD}'
  84. MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
  85. volumes:
  86. - 'sailmysql:/var/lib/mysql'
  87. networks:
  88. - hi-user
  89. healthcheck:
  90. test: ["CMD", "mysqladmin", "ping"]
  91. pma:
  92. image: 'phpmyadmin:latest'
  93. ports:
  94. - 8080:80
  95. environment:
  96. MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
  97. links:
  98. - "mysql:db"
  99. depends_on:
  100. - mysql
  101. networks:
  102. - hi-user
  103. mailhog:
  104. image: mailhog/mailhog
  105. logging:
  106. driver: 'none' # disable saving logs
  107. ports:
  108. - 1025:1025 # smtp server
  109. - 8025:8025 # web ui
  110. networks:
  111. - hi-user
  112. mongo:
  113. container_name: "mongo"
  114. image: mongo:latest
  115. networks:
  116. - hi-user
  117. elasticsearch:
  118. image: docker.elastic.co/elasticsearch/elasticsearch:7.11.2
  119. environment:
  120. - http.host=0.0.0.0
  121. - transport.host=localhost
  122. - network.host=0.0.0.0
  123. - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  124. ulimits:
  125. memlock:
  126. soft: 512
  127. hard: 1024
  128. networks:
  129. - hi-user
  130. graylog:
  131. container_name: "graylog"
  132. image: graylog/graylog:4.0.5
  133. environment:
  134. GRAYLOG_HTTP_EXTERNAL_URI: "http://127.0.0.1:9000/"
  135. GRAYLOG_PASSWORD_SECRET: supersecretpassword
  136. GRAYLOG_ROOT_PASSWORD_SHA2: "8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918"
  137. GRAYLOG_ELASTICSEARCH_VERSION: 7
  138. restart: always
  139. depends_on:
  140. - mongo
  141. - elasticsearch
  142. ports:
  143. - 9000:9000
  144. - 12201:12201
  145. - 1514:1514
  146. networks:
  147. - hi-user
  148. networks:
  149. hi-user:
  150. external: false
  151. driver: bridge
  152. hi:
  153. external: true
  154. volumes:
  155. redis-data:
  156. driver: local
  157. sailmysql:
  158. driver: local