Skip to content

dhanugupta/docker-apache-ubuntu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker with Apache Ubuntu PHP

Installing Docker You can click here Docker Installation

Setting up the project

  • ./Dockerfile
  • ./app/index.php
  • ./apache-config.conf

Building the container

docker build -t app .

Running the container

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

About

Dockerize Apache Ubuntu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages