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