Skip to content

Latest commit

 

History

History
 
 

compose-assignment-1

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Assignment: Writing a Compose File

Goal: Create a compose config for a local Drupal CMS website

  • This empty directory is where you should create a docker-compose.yml
  • Use the drupal:8.8.2 image along with the postgres:12.1 image
  • Set the version to 2
  • Use ports to expose Drupal on 8080
  • Be sure to setup POSTGRES_PASSWORD on postgres image
  • Walk though Drupal config in browser at https://localhost:8080
  • Tip: Drupal assumes DB is localhost, but it will actually be on the compose service name you give it
  • Use Docker Hub documentation to figure out the right environment and volume settings
  • Extra Credit: Use volumes to store Drupal unique data