Skip to content

Instantly share code, notes, and snippets.

@rockdog
Created October 27, 2017 20:41
Show Gist options
  • Save rockdog/19be673fb1d40d498e64e71fb441d335 to your computer and use it in GitHub Desktop.
Save rockdog/19be673fb1d40d498e64e71fb441d335 to your computer and use it in GitHub Desktop.
Drupal Compose Example
version: '3'
services:
web:
image: drupal:8.4-apache
volumes:
- drupal-modules:/var/www/html/modules
- drupal-profiles:/var/www/html/profiles
- drupal-themes:/var/www/html/themes
ports:
- 8080:80
db:
image: postgres:9.6
environment:
POSTGRES_USER: drupal
POSTGRES_PASSWORD: s3cret
POSTGRES_DB: drupal
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- pg-data:/var/lib/postgresql/data/pgdata
volumes:
drupal-modules:
drupal-profiles:
drupal-themes:
pg-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment