Last updated
Last updated
In this lesson, we will learn how to use volumes and networks in a docker compose file.
Step 1: Setup your environment:
Step 2: Create a docker-compose.yml file:
docker-compose.yml:
Step 2: Create the compose container:
Step 4: List compose services:
Step 5: List the volumes:
Step 6: List the volumes:
Docker Compose Documentation(https://docs.docker.com/compose/compose-file/compose-file-v3/#docker-compose-file-v3)