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.

119 lines
2.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. - sail
  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. - 9000:9000
  25. environment:
  26. MINIO_ACCESS_KEY: root
  27. MINIO_SECRET_KEY: minioroot
  28. networks:
  29. - sail
  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. - sail
  46. depends_on:
  47. - redis
  48. redis:
  49. image: redis:latest
  50. ports:
  51. - 6379:6379
  52. command: redis-server --requirepass root
  53. volumes:
  54. - redis-data:/data
  55. networks:
  56. - sail
  57. laravel.test:
  58. build:
  59. context: ./vendor/laravel/sail/runtimes/8.0
  60. dockerfile: Dockerfile
  61. args:
  62. WWWGROUP: '${WWWGROUP}'
  63. image: sail-8.0/app
  64. ports:
  65. - '${APP_PORT:-80}:80'
  66. environment:
  67. WWWUSER: '${WWWUSER}'
  68. LARAVEL_SAIL: 1
  69. volumes:
  70. - '.:/var/www/html'
  71. networks:
  72. - sail
  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. - sail
  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. - sail
  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. - sail
  112. networks:
  113. sail:
  114. driver: bridge
  115. volumes:
  116. redis-data:
  117. driver: local
  118. sailmysql:
  119. driver: local