Advertisement
Guest User

Untitled

a guest
Sep 21st, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. # Web node
  2. web:
  3. hostname: web
  4. image: eboraas/apache-php
  5. ports:
  6. - "192.168.99.100:80:80"
  7. - "192.168.99.100:443:443"
  8. volumes:
  9. # PHP configuration overrides
  10. - "./.docker/php5/php.ini:/etc/php5/fpm/conf.d/z_php.ini"
  11. - "./.docker/apache/allow-www.conf:/etc/apache2/conf-enabled/allow-www.conf"
  12. # - "./.docker/ssl-certs:/etc/ssl"
  13. # Docroot mapping
  14. - "./:/var/www/html"
  15. # Log mapping
  16. # - "./.docker/logs:/var/log"
  17. links:
  18. - db
  19. environment:
  20. - VIRTUAL_HOST=your-host.docker
  21.  
  22. # DB node
  23. db:
  24. hostname: db
  25. image: mysql:5.6
  26. ports:
  27. - "192.168.99.100:3306:3306"
  28. # DB configuration
  29. environment:
  30. - MYSQL_ROOT_PASSWORD=admin123
  31. - MYSQL_USER=mysql_user
  32. - MYSQL_PASSWORD=123
  33. - MYSQL_DATABASE=mysql_db
  34. volumes:
  35. # MySQL configuration overrides
  36. - "./.docker/mysql/my.cnf:/etc/mysql/conf.d/z_my.cnf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement