Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. version: "3.3"
  2. services:
  3. php:
  4. image: php:7.1-apache #7.1.x-apache-latest
  5. depends_on:
  6. - db
  7. volumes:
  8. - type: bind
  9. source: /var/sources
  10. target: /var/www/html
  11. ports:
  12. - target: 80
  13. published: 80
  14. protocol: tcp
  15. mode: host
  16. db:
  17. image: mariadb:10 #10.x latest
  18. volumes:
  19. - type: bind
  20. source: /var/vm/db
  21. target: /var/lib/mysql
  22. environment:
  23. MYSQL_ROOT_PASSWORD: ROOTPW
  24. MYSQL_USER: test
  25. MYSQL_PASSWORD: TESTPW
  26. ports:
  27. - target: 3306
  28. published: 3306
  29. protocol: tcp
  30. mode: host
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement