- Clone the repo locally and cd into the directory
- run composer install
- run docker-composer up -d
- copy a backup of the oxfordpath database into yor project
- connect to the php container -
docker-compose exec php bash
- run
drush sql-drop -y
and thendrush sql-cli < path/to/sql
to import the db - run
docker-compose stop
(nicer than docker-compose down because it keeps the containers) and thendocker-compose start
- visit your site at http://drupal.docker.localhost:8000
Docker4Drupal is a set of docker images optimized for Drupal. Use docker-compose.yml
file from the latest stable release to spin up local environment on Linux, Mac OS X and Windows.
- Read the docs on how to use
- Follow @wodbycloud for future announcements
- Join community slack to ask questions
The Drupal stack consist of the following containers:
Container | Versions | Service name | Image | Default |
---|---|---|---|---|
Nginx | 1.15, 1.14 | nginx |
wodby/nginx | ✓ |
Apache | 2.4 | apache |
wodby/apache | |
Drupal | 8, 7 | php |
wodby/drupal | ✓ |
PHP | 7.3, 7.2, 7.1, 5.6* | php |
wodby/drupal-php | |
MariaDB | 10.3, 10.2, 10.1 | mariadb |
wodby/mariadb | ✓ |
PostgreSQL | 11, 10, 9.x | postgres |
wodby/postgres | |
Redis | 5, 4 | redis |
wodby/redis | |
Memcached | 1 | memcached |
wodby/memcached | |
Varnish | 6.0, 4.1 | varnish |
wodby/varnish | |
Node.js | 10, 8, 6 | node |
wodby/node | |
Drupal node | 1.0 | drupal-node |
wodby/drupal-node | |
Solr | 7.x, 6.6, 5.5, 5.4 | solr |
wodby/solr | |
Elasticsearch | 6.x, 5.6, 5.5, 5.4 | elasticsearch |
wodby/elasticsearch | |
Kibana | 6.x, 5.6, 5.5, 5.4 | kibana |
wodby/kibana | |
OpenSMTPD | 6.0 | opensmtpd |
wodby/opensmtpd | |
Mailhog | latest | mailhog |
mailhog/mailhog | ✓ |
AthenaPDF | 2.10.0 | athenapdf |
arachnysdocker/athenapdf-service | |
Rsyslog | latest | rsyslog |
wodby/rsyslog | |
Blackfire | latest | blackfire |
blackfire/blackfire | |
Webgrind | 1.5 | webgrind |
wodby/webgrind | |
Xhprof viewer | latest | xhprof |
wodby/xhprof | |
Adminer | 4.6 | adminer |
wodby/adminer | |
phpMyAdmin | latest | pma |
phpmyadmin/phpmyadmin | |
Portainer | latest | portainer |
portainer/portainer | ✓ |
Traefik | latest | traefik |
_/traefik | ✓ |
Supported Drupal versions: 8 / 7
*❕PHP 5.6 has reached end of life and no longer supported by PHP team, we strongly advise you to migrate to the latest stable 7.x version.
Full documentation is available at https://wodby.com/docs/stacks/drupal/local.
Images tags format is [VERSION]-[STABILITY_TAG]
where:
[VERSION]
is the version of an application (without patch version) running in a container, e.g. wodby/nginx:1.15-x.x.x
where Nginx version is 1.15
and x.x.x
is a stability tag. For some images we include both major and minor version like PHP 7.2
, for others we include only major like Redis 5
.
[STABILITY_TAG]
is the version of an image that corresponds to a git tag of the image repository, e.g. wodby/mariadb:10.2-3.3.8
has MariaDB 10.2
and stability tag 3.3.8
. New stability tags include patch updates for applications and image's fixes/improvements (new env vars, orchestration actions fixes, etc). Stability tag changes described in the corresponding a git tag description. Stability tags follow semantic versioning.
We highly encourage to use images only with stability tags.
We regularly update images used in this stack and release them together, see releases page for full changelog and update instructions. Most of routine updates for images and this project performed by the bot via scripts located at wodby/images.
Docker4Drupal is a project designed to help you spin up local environment with docker-compose. If you want to deploy a consistent stack with orchestrations to your own server, check out Drupal stack on Wodby .
This project is licensed under the MIT open source license.