Build [Docker] image for [Apache2] provisioned via [Ansible]
1.7K
Build Docker image for Apache2 provisioned via Ansible
If you need to modify any configurations you will need to rebuild the image:
docker build -t apache2 .
And then spin the image up:
docker run -d -p 80:80 -p 443:443 apache2
docker run -d -p 80:80 -p 443:443 mrlesmithjr/apache2
You can also enable PHP support by spinning up as below:
docker run -d -e "APACHE2_ENABLE_PHP=true" -p 80:80 -p 443:443 mrlesmithjr/apache2
Spin up using docker-compose:
docker-compose up -d
docker-compose.yml
version: '2'
services:
apache2:
environment:
APACHE2_ENABLE_PHP: "true"
image: "mrlesmithjr/apache2"
ports:
- "80:80"
- "443:443"
restart: "always"
volumes:
- "apache2_www:/var/www"
volumes:
apache2_www:
BSD
Larry Smith Jr.
Content type
Image
Digest
Size
22 MB
Last updated
over 8 years ago
docker pull mrlesmithjr/apache2