Last updated
version: '3'
services:
drupal:
image: drupal:8-apache
ports:
- '8080:80'
volumes:
- drupal-modules:/var/www/html/modules
- drupal-profiles:/var/www/html/profiles
- drupal-sites:/var/www/html/sites
- drupal-themes:/var/www/html/themes
restart: always
postgres:
image: postgres:10
environment:
POSTGRES_PASSWORD: pgPass@1
restart: always
volumes:
drupal-modules:
drupal-profiles:
drupal-sites:
drupal-themes:
docker-compose up [--build] [...options]docker-compose down [-v] [...other options]version: '3'
services:
proxy:
build:
context: .
dockerfile: nginx.Dockerfile
image: nginx-custom
ports:
- '80:80'
web:
image: httpd
volumes:
- ./html:/usr/local/apache2/htdocs/