Advertisement
Guest User

Untitled

a guest
Dec 1st, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4. server:
  5. image: nginx:latest
  6. ports:
  7. - "80:80"
  8. volumes:
  9. - ./src:/app
  10. - ./.docker/nginx/conf/vhost.conf:/etc/nginx/conf.d/vhost.conf
  11. links:
  12. - php
  13.  
  14. php:
  15. build: ./.docker/php
  16. image: api/php:7.1
  17. volumes:
  18. - ./src:/app
  19. links:
  20. - db
  21.  
  22. db:
  23. image: percona:5.7
  24. volumes:
  25. - /var/lib/mysql
  26. ports:
  27. - 3306:3306
  28. environment:
  29. - MYSQL_ROOT_PASSWORD=root
  30. - MYSQL_DATABASE=mobile
  31. - MYSQL_USER=mobile
  32. - MYSQL_PASSWORD=mobile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement