Advertisement
Guest User

Untitled

a guest
Dec 28th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. version: '2'
  2. services:
  3.  
  4. # The Application
  5. app:
  6. build:
  7. context: ./
  8. dockerfile: app.dockerfile
  9. working_dir: /var/www
  10. # command: php -S 0.0.0.0:8000
  11. volumes:
  12. - ./:/var/www
  13. environment:
  14. - "DB_PORT=3306"
  15. - "DB_HOST=database"
  16. # ports:
  17. # - "8000:8000"
  18. # The Web Server
  19. web:
  20. build:
  21. context: ./
  22. dockerfile: web.dockerfile
  23. working_dir: /var/www
  24. volumes_from:
  25. - app
  26. ports:
  27. - 8000:80
  28.  
  29. # The Database
  30. database:
  31. image: mysql:5.6
  32. volumes:
  33. - dbdata:/var/lib/mysql
  34. environment:
  35. - "MYSQL_DATABASE=homestead"
  36. - "MYSQL_USER=homestead"
  37. - "MYSQL_PASSWORD=secret"
  38. - "MYSQL_ROOT_PASSWORD=secret"
  39. ports:
  40. - "33061:3306"
  41.  
  42. volumes:
  43. dbdata:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement