Guest User

Untitled

a guest
May 14th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. version: "3"
  2. services:
  3.  
  4. nginx:
  5. image: nginx:latest
  6. ports:
  7. - '8080:80'
  8. volumes:
  9. - ./nginx:/etc/nginx/conf.d
  10. - ./logs/nginx:/var/logs/nginx
  11. - ./apps:/var/www/html
  12. depends_on:
  13. - php
  14. restart: always
  15.  
  16. php:
  17. image: laradock/php-fpm:2.2-7.2
  18. volumes:
  19. - ./apps:/var/www/html
  20. restart: always
  21. mysql:
  22. image: mariadb
  23. ports:
  24. - '33060:3306'
  25. volumes:
  26. - ./db:/var/lib/mysql
  27. environment:
  28. - MYSQL_ROOT_PASSWORD=root
  29. restart: always
  30.  
  31. mysql -u 127.0.0.1 -P 33060 -u root -p
  32.  
  33. DB_CONNECTION=mysql
  34. DB_HOST=127.0.0
  35. DB_PORT=3306
  36. DB_DATABASE=homestead
  37. DB_USERNAME=root
  38. DB_PASSWORD=secret
Add Comment
Please, Sign In to add comment