Docker volumes and networks

Setting up wordpress site using docker-compose

Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a Compose file to configure your application's services. Then, using a single command, you create and start all the services from your configuration

  • Let's setup wordpress site using docker-compose
cd /opt/wordpress
docker-compose up -d

docker compose wordpress

  • Access the wordpress site using http://STUDENTVMIP:8000

wordpress site

Checking for the docker volumes

  • Listing the docker volumes
docker volume ls

docker volumes

  • Listing the docker networks
docker network ls

docker networks

results matching ""

    No results matching ""