smaction

docker-compose

May 25th, 2018
477
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. version: '3'
  2. services:
  3. php-apache:
  4. image: php:apache
  5. ports:
  6. - 80:80
  7. volumes:
  8. - ./DocumentRoot:/var/www/html:z
  9. links:
  10. - 'mysql'
  11.  
  12. mysql:
  13. image: mysql:latest
  14. ports:
  15. - 3306:3306
  16. volumes:
  17. - mysql:/var/lib/mysql
  18. environment:
  19. MYSQL_RANDOM_ROOT_PASSWORD: "yes"
  20. MYSQL_ONETIME_PASSWORD: "yes"
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. volumes:
  28. mysql:
Advertisement
Add Comment
Please, Sign In to add comment