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.

90 lines
2.2 KiB

4 years ago
  1. # For more information: https://laravel.com/docs/sail
  2. version: '3'
  3. services:
  4. minio:
  5. image: minio/minio
  6. command: server /data
  7. ports:
  8. - 9000:9000
  9. environment:
  10. MINIO_ACCESS_KEY: root
  11. MINIO_SECRET_KEY: minioroot
  12. networks:
  13. - sail
  14. commander:
  15. image: rediscommander/redis-commander:latest
  16. environment:
  17. - REDIS_HOST=redis
  18. - REDIS_PORT=6379
  19. - HTTP_USER=root
  20. - HTTP_PASSWORD=root
  21. - REDIS_PASSWORD=root
  22. ports:
  23. - 8081:8081
  24. depends_on:
  25. - redis
  26. networks:
  27. - sail
  28. redis:
  29. image: redis:latest
  30. ports:
  31. - 6379:6379
  32. command: redis-server --requirepass root
  33. volumes:
  34. - redis-data:/data
  35. networks:
  36. - sail
  37. laravel.test:
  38. build:
  39. context: ./vendor/laravel/sail/runtimes/8.0
  40. dockerfile: Dockerfile
  41. args:
  42. WWWGROUP: '${WWWGROUP}'
  43. image: sail-8.0/app
  44. ports:
  45. - '${APP_PORT:-80}:80'
  46. environment:
  47. WWWUSER: '${WWWUSER}'
  48. LARAVEL_SAIL: 1
  49. volumes:
  50. - '.:/var/www/html'
  51. networks:
  52. - sail
  53. depends_on:
  54. - mysql
  55. mysql:
  56. image: 'mysql:8.0'
  57. ports:
  58. - '${FORWARD_DB_PORT:-3306}:3306'
  59. environment:
  60. MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
  61. MYSQL_DATABASE: '${DB_DATABASE}'
  62. MYSQL_USER: '${DB_USERNAME}'
  63. MYSQL_PASSWORD: '${DB_PASSWORD}'
  64. MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
  65. volumes:
  66. - 'sailmysql:/var/lib/mysql'
  67. networks:
  68. - sail
  69. healthcheck:
  70. test: ["CMD", "mysqladmin", "ping"]
  71. myadmin:
  72. image: 'phpmyadmin:latest'
  73. ports:
  74. - 8080:80
  75. environment:
  76. MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
  77. links:
  78. - "mysql:db"
  79. depends_on:
  80. - mysql
  81. networks:
  82. - sail
  83. networks:
  84. sail:
  85. driver: bridge
  86. volumes:
  87. redis-data:
  88. driver: local
  89. sailmysql:
  90. driver: local