Guest User

Untitled

a guest
Aug 4th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4. mysql:
  5. image: wodby/mariadb:10.1
  6. container_name: <ProjectName>_mysql
  7. restart: unless-stopped
  8. environment:
  9. MYSQL_ROOT_PASSWORD: drupal
  10. MYSQL_DATABASE: drupal
  11. MYSQL_USER: drupal
  12. MYSQL_PASSWORD: drupal
  13. volumes:
  14. - <ProjectName>Volume:/var/lib/mysql
  15. - ./databases:/var/lib/mysql/databases
  16.  
  17. php:
  18. image: wodby/drupal-php:5.6
  19. container_name: <ProjectName>_php
  20. restart: unless-stopped
  21. environment:
  22. PHP_FPM_CLEAR_ENV: 'no'
  23. PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
  24. PHP_XDEBUG: 1
  25. PHP_XDEBUG_DEFAULT_ENABLE: 1
  26. PHP_XDEBUG_REMOTE_CONNECT_BACK: 1
  27. PHP_XDEBUG_ENABLED: 1
  28. PHP_XDEBUG_AUTOSTART: 1
  29. volumes:
  30. - <ProjectName>Volume:/var/www/html
  31.  
  32. nginx:
  33. image: wodby/drupal-nginx:7
  34. container_name: <ProjectName>_nginx
  35. restart: unless-stopped
  36. depends_on:
  37. - php
  38. environment:
  39. NGINX_STATIC_CONTENT_OPEN_FILE_CACHE: 'off'
  40. NGINX_ERROR_LOG_LEVEL: debug
  41. NGINX_BACKEND_HOST: php
  42. NGINX_SERVER_ROOT: /var/www/html
  43. NGINX_SERVER_NAME: localhost
  44. volumes:
  45. - <ProjectName>Volume:/var/www/html # Docker-sync
  46. ports:
  47. - '8021:80'
  48.  
  49. pma:
  50. image: phpmyadmin/phpmyadmin
  51. container_name: <ProjectName>_pma
  52. restart: unless-stopped
  53. environment:
  54. PMA_HOST: mysql
  55. PMA_USER: root
  56. PMA_PASSWORD: drupal
  57. PHP_UPLOAD_MAX_FILESIZE: 1G
  58. PHP_MAX_INPUT_VARS: 1G
  59. ports:
  60. - '8022:80'
  61.  
  62. mailhog:
  63. image: mailhog/mailhog
  64. container_name: <ProjectName>_hog
  65. restart: unless-stopped
  66.  
  67. volumes:
  68. ## Docker-sync for macOS users
  69. <ProjectName>Volume:
  70. external: true
  71. <ProjectName>DB:
  72. external: true
Add Comment
Please, Sign In to add comment