Guest User

Untitled

a guest
Sep 18th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. version: '2'
  2. services:
  3. # The Application
  4. app:
  5. build:
  6. context: ./
  7. dockerfile: php-fpm.dockerfile
  8. working_dir: /var/www
  9. volumes:
  10. - ./:/var/www
  11. environment:
  12. - "DB_PORT=3306"
  13. - "DB_HOST=database"
  14. ports:
  15. - 9000:9000
  16. tty: true
  17.  
  18. composer:
  19. restart: 'no'
  20. image: composer/composer:php7
  21. command: install
  22. volumes:
  23. - .:/var/www
  24.  
  25. # The Web Server
  26. web:
  27. build:
  28. context: ./
  29. dockerfile: nginx.dockerfile
  30. working_dir: /var/www
  31. volumes_from:
  32. - app
  33. ports:
  34. - 8080:80
  35.  
  36. # The Database
  37. database:
  38. image: mysql:5.7
  39. volumes:
  40. - dbdata:/var/lib/mysql
  41. environment:
  42. - "MYSQL_DATABASE=homestead"
  43. - "MYSQL_USER=homestead"
  44. - "MYSQL_PASSWORD=secret"
  45. - "MYSQL_ROOT_PASSWORD=secret"
  46. ports:
  47. - "33061:3306"
  48.  
  49. volumes:
  50. dbdata:
Add Comment
Please, Sign In to add comment