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.

59 lines
1.3 KiB

  1. # For more information: https://laravel.com/docs/sail
  2. version: "3"
  3. services:
  4. marvel.test: # This name should be same as your env APP_SERVICE value
  5. build:
  6. context: ./vendor/laravel/sail/runtimes/8.1
  7. dockerfile: Dockerfile
  8. args:
  9. WWWGROUP: "${WWWGROUP}"
  10. image: sail-8.1/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. mysql:
  24. image: "mysql:8.0"
  25. platform: 'linux/x86_64'
  26. ports:
  27. - "${FORWARD_DB_PORT:-3306}:3306"
  28. environment:
  29. MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
  30. MYSQL_DATABASE: "${DB_DATABASE}"
  31. MYSQL_USER: "${DB_USERNAME}"
  32. MYSQL_PASSWORD: "${DB_PASSWORD}"
  33. MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
  34. volumes:
  35. - "marvel_mysql:/var/lib/mysql"
  36. networks:
  37. - sail
  38. redis:
  39. image: "redis:alpine"
  40. ports:
  41. - "${FORWARD_REDIS_PORT:-6379}:6379"
  42. volumes:
  43. - "marvel_redis:/data"
  44. networks:
  45. - sail
  46. mailhog:
  47. image: "mailhog/mailhog:latest"
  48. ports:
  49. - 1025:1025
  50. - 8025:8025
  51. networks:
  52. - sail
  53. networks:
  54. sail:
  55. driver: bridge
  56. volumes:
  57. marvel_mysql:
  58. driver: local
  59. marvel_redis:
  60. driver: local