From 901e0dfcaf47e28af4bde73b5a5ffb33e4e5d01a Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 6 Jan 2017 15:22:37 -0800 Subject: [PATCH] Add an initial docker-compose.yml for drupal --- drupal/content.md | 2 ++ drupal/docker-compose.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 drupal/docker-compose.yml diff --git a/drupal/content.md b/drupal/content.md index 4add1fc87..e5c339273 100644 --- a/drupal/content.md +++ b/drupal/content.md @@ -46,6 +46,8 @@ $ docker run --name some-%%REPO%% --link some-postgres:postgres -d %%REPO%% - Database name/username/password: `
` (`POSTGRES_USER`, `POSTGRES_PASSWORD`; see environment variables in the description for [`postgres`](https://registry.hub.docker.com/_/postgres/)) - ADVANCED OPTIONS; Database host: `postgres` (for using the `/etc/hosts` entry added by `--link` to access the linked container's PostgreSQL instance) +## %%COMPOSE%% + ## Adding additional libraries / extensions This image does not provide any additional PHP extensions or other libraries, even if they are required by popular plugins. There are an infinite number of possible plugins, and they potentially require any extension PHP supports. Including every PHP extension that exists would dramatically increase the image size. diff --git a/drupal/docker-compose.yml b/drupal/docker-compose.yml new file mode 100644 index 000000000..639716b3c --- /dev/null +++ b/drupal/docker-compose.yml @@ -0,0 +1,26 @@ +# Drupal with PostgreSQL +# +# Access via "http://localhost:8080" (or "http://$(docker-machine ip):8080" if using docker-machine) +# +# During initial Drupal setup, +# Database type: PostgreSQL +# Database name: postgres +# Database username: postgres +# Database password: example +# ADVANCED OPTIONS; Database host: postgres + +version: '2' + +services: + + drupal: + image: drupal:8.2-apache + ports: + - 8080:80 + restart: always + + postgres: + image: postgres:9.6 + environment: + POSTGRES_PASSWORD: example + restart: always