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.

55 lines
1.4 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. mysql:
  23. image: 'mysql:8.0'
  24. ports:
  25. - '${FORWARD_DB_PORT:-3306}:3306'
  26. environment:
  27. MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
  28. MYSQL_DATABASE: '${DB_DATABASE}'
  29. MYSQL_USER: '${DB_USERNAME}'
  30. MYSQL_PASSWORD: '${DB_PASSWORD}'
  31. MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
  32. volumes:
  33. - 'sailmysql:/var/lib/mysql'
  34. networks:
  35. - sail
  36. healthcheck:
  37. test: ["CMD", "mysqladmin", "ping"]
  38. myadmin:
  39. image: 'phpmyadmin:latest'
  40. ports:
  41. - 8080:80
  42. environment:
  43. MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
  44. links:
  45. - "mysql:db"
  46. depends_on:
  47. - mysql
  48. networks:
  49. - sail
  50. networks:
  51. sail:
  52. driver: bridge
  53. volumes:
  54. sailmysql:
  55. driver: local