Advertisement
Guest User

Untitled

a guest
Jan 8th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. version: '2'
  2. services:
  3. nginx:
  4. image: evild/alpine-nginx:1.9.15-openssl
  5. container_name: lemp_nginx
  6. restart: always
  7. links:
  8. - php
  9. volumes:
  10. - ./website:/var/www/html/:ro
  11. - ./nginx/conf/nginx.conf:/etc/nginx/conf/nginx.conf:ro
  12. - ./nginx/conf.d:/etc/nginx/conf.d:ro
  13. ports:
  14. - 80:80
  15. - 443:443
  16. php:
  17. build: ./php
  18. container_name: lemp_php
  19. restart: always
  20. volumes:
  21. - './website:/var/www/html/'
  22. depends_on:
  23. - dbcontainer
  24. links:
  25. - dbcontainer
  26. environment:
  27. - APPLICATION_ENV=local
  28. - SITE_ENV=yeugamebai
  29. dbcontainer:
  30. image: mariadb
  31. container_name: lemp_mariadb
  32. restart: always
  33. volumes:
  34. - '/vagrant_data:/var/lib/mysql/data:rw'
  35. environment:
  36. - MYSQL_USER=root
  37. - MYSQL_PASSWORD=root
  38. - MYSQL_ROOT_PASSWORD=root
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement