Advertisement
Guest User

docker-compose.yml

a guest
Dec 6th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1.  
  2. version: '2'
  3. services:
  4.  
  5. # The Application
  6. app:
  7. build:
  8. context: ./confs/
  9. dockerfile: app.dockerfile
  10. working_dir: /var/www
  11. volumes:
  12. - C:\Users\couty\Documents\itnight\website:/var/www
  13. - ./confs/.zshrc:/root/.zshrc
  14. environment:
  15. - "DB_PORT=3306"
  16. - "DB_HOST=database"
  17.  
  18. # The Web Server
  19. web:
  20. build:
  21. context: ./confs/
  22. dockerfile: web.dockerfile
  23. working_dir: /var/www
  24. volumes_from:
  25. - app
  26. ports:
  27. - 8080:80
  28.  
  29. # The Database
  30. database:
  31. image: mariadb:10.2
  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