Create a simple Docker Compose project

Go to Project 4 from the git repository root:

cd projects/p04

Build an image and start the container using Docker Compose:

docker-compose up -d

Check the container:

docker-compose ps
# The name of the container: p04_php_1

Check the networks:

docker network ls
# New bridge network: p04_default

Delete the container, and networks with Docker Compose:

docker-compose down

Or delete the volumes too.

docker-compose down --volume

docker-compose down