Drupal docker stacks was inspired by Docker4Drupal. It is a template for a drupal development workflow using docker stacks to represent the local, dev, staging and production drupal environments.
Drupal docker stacks provides and utilizes tools in order to synchronize environments facilitating the development workflow.
- Docker CE 17.04.0+ supporting compose file format 3.2+, get it here
- Docker-sync in order to mount a mac drive to docker, get it here or
gem install docker-sync
- Access to private repo https://github.com/scbd/drupal-config
- git config (set up with your account which has access ot the private repo)
- Required SCBD secrets in order to run drupal
- SRCKEY - key to decrypt encrypted docker image
- db-init
- S3ID
- S3PASS
- Supplementary SCBD secrets
- AURORA_USER - your user for the cloud sql
- AURORA_PASS - your pass for the cloud sql
- DRUPAL_ADMIN_USER
- DRUPAL_ADMIN_PASS
Request private access and secrets from it@cbd.int. Also our cloud based sql is ip restricted, you will need to provide your static ip for local development.
Place your secrets in your home directory $HOME/.secrets/
bash -c "$(curl -fsSL https://tinyurl.com/y8k7f2f4)"
To start drupal after stopped
sh start.sh
To start drupal from running in the back ground
sh stop.sh
To export config changes for git commit
sh export.sh
To require a drupal module or theme
sh require.sh drupal/module
To completely remove all drupal and data from your system
bash -c "$(curl -fsSL https://tinyurl.com/y98xuzjj)"
Full documentation is available at http://drupal-docker-stacks.readthedocs.io
https://drupal.staging.cbd.int/
Stack | yml |
---|---|
local | drupal.yml |
dev | drupal.yml |
stg | drupal.yml |
prod | drupal.yml |
Drupal Docker Stacks has one dependency which is a reverse proxy. Our implementation is employs traefik. Please share your custom reverse proxy implementations.
Stack | yml |
---|---|
local | proxy.yml |
dev | proxy.yml |
stg | proxy.yml |
The helper stack portainer a tool to help you manage your docker stacks via a UI.
Stack | yml |
---|---|
local | manage.yml |
dev | manage.yml |
stg | manage.yml |
- memcache
- varnish
- solr
This project is licensed under the MIT open source license.