manniru
12/10/2018 - 5:47 AM

Docker Alpine D8 Play With Docker Stack http://play-with-docker.com/?stack=https://gist.githubusercontent.com/manniru/d38a198203d43301c9c087

# BISMILLAHIR RAHAMANIR RAHIM
# Developed By: Muhammad Mannir Ahmad (manniru@gmail.com)

# 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: '3.7'

services:

  drupal:
    image: drupal:8-apache
    ports:
      - 8080:80
    volumes:
      - /var/www/html/modules
      - /var/www/html/profiles
      - /var/www/html/themes
      # this takes advantage of the feature in Docker that a new anonymous
      # volume (which is what we're creating here) will be initialized with the
      # existing content of the image at the same location
      - /var/www/html/sites
    restart: always

  postgres:
    image: postgres:11.1-alpine
    environment:
      POSTGRES_PASSWORD: example
    restart: always