Advertisement
Guest User

Untitled

a guest
Jun 9th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. web1:
  2. image: php:apache
  3. hostname: web1
  4. links:
  5. - mysql
  6. volumes:
  7. - /home/iche/Desktop/index.php
  8. expose:
  9. - 80
  10.  
  11. web2:
  12. image: php:apache
  13. hostname: web2
  14. links:
  15. - web1
  16. volumes:
  17. - /home/iche/Desktop/index.php
  18. expose:
  19. - 80
  20.  
  21. haproxy:
  22. build: haproxy
  23. links:
  24. - web1
  25. - web2
  26. ports:
  27. - "80:80"
  28. tty: true
  29. mysql:
  30. image: mysql:5.7
  31. environment:
  32. - MYSQL_ROOT_PASSWORD=test
  33. - MYSQL_DATABASE=wordpresse
  34. - MYSQL_USER=root
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement