Hi there,

We've started a new open source initiative Docker4Drupal.org. As you can tell from its name the idea is to help developers adopt docker containers. The GitHub repository contains docker compose file that can be used to pull and run containers. All containers use public images (official or forks) and pre-configured to work with Drupal.

https://github.com/wodby/docker4drupal

Comments

chingis’s picture

New things in the bundle:

  1. Now you can change PHP version (5.6 or 7)
  2. Default installation goes with phpMyAdmin
  3. Mailhog included in the default bundle to catch and view (via admin UI) all emails sent from PHP container
  4. You can optionally deploy Apache Solr search engine
  5. You can optionally deploy container with redis/memcached to use as a cache storage
  6. PHP container includes xdebug, composer and drush
  7. Now you can import your database by copying the dump to a special mariadb volume
  8. Instructions updated (recommended to copy compose file to your drupal project codebase)
Wilfred Waltman’s picture

Chingis,

How can I connect to the solr container from Drupal Search API configuration. I think i tried every combination of protocol, host and port but all I get back is "The Solr server could not be reached or is protected by your service provider."

What is the right way here?

chingis’s picture

Wilfred, use the settings below to connect to your solr container:

URL: http://solr:8983/solr/

Host: solr
Port: 8983
Path: /solr/

Wilfred Waltman’s picture

Chingis, I had a clear moment this morning and did figure that out. Thanks for the swift reply.

chingis’s picture

  • New optional Varnish container
  • Added Drupal console to PHP container
  • New optional container with Memcached admin UI
  • Added instructions on how to use with multiple projects
  • Added default drush alias @dev
hollydo’s picture

Hi, I'm trying to use Varnish with Drupal 8, but there isn't any real documentation on how to set it up on http://docker4drupal.readthedocs.io/en/stable/containers/varnish/. I tried to follow the blog https://wunderkraut.se/blogg/purge-cachetags-varnish but I can't get the X-Varnish to show up in the Header for my site despite the all green status for Purge within the drupal admin dashboard when you go to admin/config/development/performance/purge.

chingis’s picture

A couple of articles how to use Docker4Drupal for CI/CD:

CircleCI example
Jenkins example

Prabhu.shan’s picture

Ching,

Thanks for the Docker4Drupal image. Is it production ready ? I do not see security scan on this image. 

chingis’s picture

For production use see http://wodby.com/stacks. There's no public security scan for images at the moment.

Prabhu.shan’s picture

thanks for the information