Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Issue #1356: Add second Dockerfile without a Drupal installation.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed May 14, 2017
1 parent 067a73e commit 00e985a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
11 changes: 11 additions & 0 deletions Dockerfile-no-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM geerlingguy/docker-debian8-ansible:latest
MAINTAINER Jeff Geerling

# Copy provisioning directory and vars files into container.
COPY ./ /etc/ansible/drupal-vm
COPY ./provisioning/docker/vars/overrides-no-install.yml /etc/ansible/drupal-vm/local.config.yml

# Provision Drupal VM inside Docker.
RUN ansible-playbook /etc/ansible/drupal-vm/provisioning/playbook.yml

EXPOSE 22 80 443 8025
5 changes: 3 additions & 2 deletions example.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ version: "3"
services:

drupal-vm:
# Switch the image to `geerlingguy/drupal-vm` if not using your own image.
image: drupal-vm
container_name: drupal-vm
ports:
- 8080:80
- 8443:443
- 80:80
- 443:443
privileged: true
volumes:
- ./:/var/www/drupalvm/:rw,cached
Expand Down
15 changes: 15 additions & 0 deletions provisioning/docker/vars/overrides-no-install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
hostname_configure: false
firewall_enabled: false
installed_extras:
- adminer
- drush
- mailhog
- pimpmylog
# - varnish

# Don't build or install Drupal inside the container.
drupal_build_makefile: false
drupal_build_composer: false
drupal_build_composer_project: false
drupal_install_site: false

0 comments on commit 00e985a

Please sign in to comment.