dhanugupta / docker-apache-ubuntu

Dockerize Apache Ubuntu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:PHP 100.0%