Sign inSign up

mrlesmithjr/apache2

By mrlesmithjr

•Updated over 8 years ago

Build [Docker] image for [Apache2] provisioned via [Ansible]

Image
0

1.7K

mrlesmithjr/apache2 repository overview

⁠Repo Info

Build Docker⁠ image for Apache2⁠ provisioned via Ansible⁠

⁠Building

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

⁠Consuming

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:

⁠License

BSD

⁠Author Information

Larry Smith Jr.

Tag summary

Content type

Image

Digest

Size

22 MB

Last updated

over 8 years ago

docker pull mrlesmithjr/apache2