Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save victor-shelepen/339caa95fa8c27cc891f284d174ecdc2 to your computer and use it in GitHub Desktop.
Save victor-shelepen/339caa95fa8c27cc891f284d174ecdc2 to your computer and use it in GitHub Desktop.
Snippets that help to deploy a project docker4drupal for development.
volumes:
web_app:
driver: local
driver_opts:
type: none
device: $PWD/${WEB_APP_PATH}
o: bind
version: "3"
services:
php:
image: wodby/drupal:$DRUPAL_TAG
environment:
PHP_FPM_CLEAR_ENV: "no"
PHP_XDEBUG: 1
PHP_XDEBUG_DEFAULT_ENABLE: 1
PHP_XDEBUG_REMOTE_HOST: 172.17.0.1
volumes:
- codebase:/var/www/html
crond:
image: wodby/drupal:$DRUPAL_TAG
environment:
PHP_FPM_CLEAR_ENV: "no"
volumes:
- codebase:/var/www/html
nginx:
volumes:
- codebase:/var/www/html
volumes:
codebase:
external: true
docker volume create --driver local \
--opt type=none \
--opt device=/home/victor/github/victor-shelepen/openy \
--opt o=bind \
codebase
docker volume ls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment