Some basic examples on how to use Docker.
This example showcases how you can build a simple website using apache.
cd apache
docker build .
ordocker build . -t <imageName>
when you're ready to "tag"docker run --name <canbewhateveryouwant> --rm -d -p 80:80 <imageName>
cd drupal
docker-compose up -d
- This will "deploy" your containers on your machine and build your infrastructuredocker-compose down
- This will tear down all your apps.
cd phpmyadmin
docker-compose up -d
- This will "deploy" your containers on your machine and build your infrastructuredocker-compose down
- This will tear down all your apps.
Username and password (log is as root) are provided in the docker-compose.yml
file.