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.

121 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. - 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. - 9000: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. networks:
  113. hi-user:
  114. external: false
  115. hi:
  116. external: true
  117. volumes:
  118. redis-data:
  119. driver: local
  120. sailmysql:
  121. driver: local