Docker with Apache Ubuntu PHP
Installing Docker You can click here Docker Installation
- ./Dockerfile
- ./app/index.php
- ./apache-config.conf
docker build -t app .
docker run -d -p 80:80 -v /data/server/app:/var/www/site/app --name app app
Logging into the container
docker exec -it app bash
Stop/Remove the container
docker stop app
docker rm app
Volume logs of container to host
docker run -d -p 80:80 -v /data/server/app:/var/www/site/app -v /data/server/log:/var/log/apache2 --name app app