Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- mysql:
- image: wodby/mariadb:10.1
- container_name: <ProjectName>_mysql
- restart: unless-stopped
- environment:
- MYSQL_ROOT_PASSWORD: drupal
- MYSQL_DATABASE: drupal
- MYSQL_USER: drupal
- MYSQL_PASSWORD: drupal
- volumes:
- - <ProjectName>Volume:/var/lib/mysql
- - ./databases:/var/lib/mysql/databases
- php:
- image: wodby/drupal-php:5.6
- container_name: <ProjectName>_php
- restart: unless-stopped
- environment:
- PHP_FPM_CLEAR_ENV: 'no'
- PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
- PHP_XDEBUG: 1
- PHP_XDEBUG_DEFAULT_ENABLE: 1
- PHP_XDEBUG_REMOTE_CONNECT_BACK: 1
- PHP_XDEBUG_ENABLED: 1
- PHP_XDEBUG_AUTOSTART: 1
- volumes:
- - <ProjectName>Volume:/var/www/html
- nginx:
- image: wodby/drupal-nginx:7
- container_name: <ProjectName>_nginx
- restart: unless-stopped
- depends_on:
- - php
- environment:
- NGINX_STATIC_CONTENT_OPEN_FILE_CACHE: 'off'
- NGINX_ERROR_LOG_LEVEL: debug
- NGINX_BACKEND_HOST: php
- NGINX_SERVER_ROOT: /var/www/html
- NGINX_SERVER_NAME: localhost
- volumes:
- - <ProjectName>Volume:/var/www/html # Docker-sync
- ports:
- - '8021:80'
- pma:
- image: phpmyadmin/phpmyadmin
- container_name: <ProjectName>_pma
- restart: unless-stopped
- environment:
- PMA_HOST: mysql
- PMA_USER: root
- PMA_PASSWORD: drupal
- PHP_UPLOAD_MAX_FILESIZE: 1G
- PHP_MAX_INPUT_VARS: 1G
- ports:
- - '8022:80'
- mailhog:
- image: mailhog/mailhog
- container_name: <ProjectName>_hog
- restart: unless-stopped
- volumes:
- ## Docker-sync for macOS users
- <ProjectName>Volume:
- external: true
- <ProjectName>DB:
- external: true
Add Comment
Please, Sign In to add comment