Advertisement
Guest User

Untitled

a guest
Mar 12th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. version: '3'
  2. services:
  3. apache-php:
  4. build:
  5. context: ./apache-php
  6. container_name: apachephp
  7. volumes:
  8. - ./..:/var/www/html
  9. - ./apache-php/000-default.conf:/etc/apache2/sites-enabled/000-default.conf
  10. - ./apache-php/php.ini:/usr/local/etc/php/conf.d/php.ini
  11. - ./apache-php/httpd.conf:/etc/apache2/conf-enabled/httpd.conf
  12. ports:
  13. - "8000:80"
  14. links:
  15. - mysql
  16. mysql:
  17. build:
  18. context: ./mysql
  19. container_name: mysql
  20. volumes:
  21. - ./mysql:/docker-entrypoint-initdb.d
  22. ports:
  23. - "3306"
  24. environment:
  25. - MYSQL_ROOT_PASSWORD=root
  26. - MYSQL_DATABASE=test
  27. - MYSQL_USER=user
  28. - MYSQL_PASSWORD=root
  29. - MYSQL_HOST=mysql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement