Docker Mastery Udemy course to build, compose, deploy, and manage containers from local development to high-availability in the cloud
docker pull library/drupal
docker run -d -p 8080:8080 --name udemy-docker-mastery drupal:9
docker compose up -d
# version isn't needed as of 2020 for docker compose CLI.
# All 2.x and 3.x features supported
# version: '2'
services:
drupal:
image: drupal:9
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
postgres:
image: postgres:14
environment:
- POSTGRES_PASSWORD=mypasswd
volumes:
drupal-modules:
drupal-profiles:
drupal-sites:
drupal-themes: