8000 Docker/docker-compose-assignment-1 at master · ShreyasSubhedar/Docker · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History

docker-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

Ans: -

  • This directory is where you should create a docker-compose.yml
  • Use the drupal:latest image along with the postgres:latest image
  • Set the version to 2 (or grater than 2 if you are interested in new features)
  • Use ports to expose Drupal on 80
  • Be sure to setup POSTGRES_PASSWORD on postgres image (using -environment)
  • Then walk though Drupal config in browser at http://localhost:80
  • 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
0