Advertisement
Guest User

docker-compose.yml

a guest
Feb 13th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. php:
  2. build: ./php-fpm
  3. expose:
  4. - "9000"
  5. links:
  6. - wordpress
  7. volumes:
  8. - ./symfony:/var/www/symfony
  9. - ./logs/symfony:/var/www/symfony/app/logs
  10.  
  11. nginx:
  12. image: nginx
  13. restart: always
  14. ports:
  15. - 80:80
  16. - 443:443
  17. links:
  18. - php
  19. volumes_from:
  20. - wordpress:ro
  21. volumes:
  22. - ./etc/nginx/conf.d:/etc/nginx/conf.d:ro
  23. - ./var/log/nginx:/var/log/nginx
  24.  
  25. wordpress:
  26. build: wordpress
  27. restart: always
  28. links:
  29. - mysql
  30. - memcached
  31. environment:
  32. WORDPRESS_DB_USER: wordpress
  33. WORDPRESS_DB_PASSWORD: password
  34. WORDPRESS_DB_NAME: wordpress
  35.  
  36. mysql:
  37. image: mariadb
  38. restart: always
  39. volumes:
  40. - ./var/mysql:/var/lib/mysql
  41. environment:
  42. MYSQL_DATABASE: wordpress
  43. MYSQL_USER: wordpress
  44. MYSQL_PASSWORD: password
  45. MYSQL_ROOT_PASSWORD: password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement