Docker Alpine D8 Play With Docker Stack http://play-with-docker.com/?stack=https://gist.githubusercontent.com/manniru/d38a198203d43301c9c0874af5721537/raw/e16e7e67e06c579a12d427e451653dc5aa0ac46c/d8_stack.yml
# 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