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.

74 lines
1.8 KiB

4 years ago
  1. # For more information: https://laravel.com/docs/sail
  2. version: '3'
  3. services:
  4. laravel.test:
  5. build:
  6. context: ./vendor/laravel/sail/runtimes/8.0
  7. dockerfile: Dockerfile
  8. args:
  9. WWWGROUP: '${WWWGROUP}'
  10. image: sail-8.0/app
  11. ports:
  12. - '${APP_PORT:-80}:80'
  13. environment:
  14. WWWUSER: '${WWWUSER}'
  15. LARAVEL_SAIL: 1
  16. volumes:
  17. - '.:/var/www/html'
  18. networks:
  19. - sail
  20. depends_on:
  21. - mysql
  22. - redis
  23. # - selenium
  24. # selenium:
  25. # image: 'selenium/standalone-chrome'
  26. # volumes:
  27. # - '/dev/shm:/dev/shm'
  28. # networks:
  29. # - sail
  30. # depends_on:
  31. # - laravel.test
  32. mysql:
  33. image: 'mysql:8.0'
  34. ports:
  35. - '${FORWARD_DB_PORT:-3306}:3306'
  36. environment:
  37. MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
  38. MYSQL_DATABASE: '${DB_DATABASE}'
  39. MYSQL_USER: '${DB_USERNAME}'
  40. MYSQL_PASSWORD: '${DB_PASSWORD}'
  41. MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
  42. volumes:
  43. - 'sailmysql:/var/lib/mysql'
  44. networks:
  45. - sail
  46. redis:
  47. image: 'redis:alpine'
  48. ports:
  49. - '${FORWARD_REDIS_PORT:-6379}:6379'
  50. volumes:
  51. - 'sailredis:/data'
  52. networks:
  53. - sail
  54. # memcached:
  55. # image: 'memcached:alpine'
  56. # ports:
  57. # - '11211:11211'
  58. # networks:
  59. # - sail
  60. mailhog:
  61. image: 'mailhog/mailhog:latest'
  62. ports:
  63. - 1025:1025
  64. - 8025:8025
  65. networks:
  66. - sail
  67. networks:
  68. sail:
  69. driver: bridge
  70. volumes:
  71. sailmysql:
  72. driver: local
  73. sailredis:
  74. driver: local