It is always good to create a dedicated directory for your Docker Compose project. This helps in organizing your project files.
- 
In the learning portfolio 3 (root directory), create a directory named dockerTasks 
- 
Get into the directory dockerTasks 
- 
Create a Docker Compose File (docker-compose.yml) 
- 
Add the following configuration to your docker-compose.yml file. Each section includes comments, do accordingly and create the services required. Pay attention to the indents. You are required to fix them also. 
services:  # Defines the services (containers) to be run.
    service1:  # Service name; name the service as firstname_lastname_db
        image:   # Use the mysql 8.0 version
        container_name: mysql_container  # Assigns a custom name to the container.
        environment:  # Sets environment variables for configuration.
            MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}: # You don't want to type the password in this file, so create a .env file and type your password there. MYSQL_PASSWORD=yourpassword
        ports:  # Maps container ports to host ports.
            - ":"  # Maps host port 6029 to container port 3306.
    volumes:  # Mounts host directories or volumes into the container.
      - your_data:/var/lib/mysql  # Persists MySQL data.
    service2:  # Service name; name the service as firstname_adminer
        image:   # Use the adminer latest version
        container_name: adminer_container  # Assigns a custom name to the container.
        ports:  # Maps container ports to host ports.
            - ":"  # Maps host port 8888 to container port 8080.
        depends_on:  # Expresses dependency between services that is specify the database service name as above
      - service1
  volumes:
    your_data:
   - Build the services and open localhost:8888
You should type the username as root and the password as in the .env file to login. Make sure that you are able to login. In the server name option when trying to login: servername is the name of the service for database. eg. firstname_lastname_db
- 
Take the screenshot from the docker dashboard. Push all these files that you have created also to your remote repo for the third learning portfolio. 
- 
Follow inclass instructions to set up the GitHub codespace and include the required screenshot. 
Congratulations, you have compelted your lp3. Submit the link to the Moodle page and write your group name group 1 or group 2 like you did earlier.