Apache Httpd
The Apache HTTP Server is a free and open-source cross-platform web server software, released under the terms of Apache License 2.0. Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation.
Pulls:
4.6B
Stars:
5k
User:
stackbrew
Created:
Nov 03, 2014
Updated:
18 days ago
Status:
active
Type
Container
Platform
linux
Image
httpd:latest
Ports
8080:80/tcp
8443:443/tcp
/usr/local/apache2/htdocs/ : /portainer/Files/AppData/Config/apache-httpd
unless-stopped
Env Vars
PUID=1000
PGID=1000
Installation
Via Portainer
- Ensure both Docker and Portainer are installed, and up-to-date
- Log into your Portainer web UI
- Under Settings → App Templates, paste the below URL
- Head to Home → App Templates, and the list of apps will show up
- Select the app you wish to deploy, fill in any config options, and hit Deploy
Template Import URL
https://raw.githubusercontent.com/Lissy93/portainer-templates/main/templates.json
Show Me
Via Docker Run
docker run -d \
-p 8080:80/tcp \
-p 8443:443/tcp \
-e PUID=${PUID} \
-e PGID=${PGID} \
-v /portainer/Files/AppData/Config/apache-httpd:/usr/local/apache2/htdocs/ \
--restart=unless-stopped \
httpd:latest
Via Docker Compose
Save this file as docker-compose.yml
and run docker-compose up -d
Use this only as a guide.
version: '3.8'
services:
apache-httpd:
image: httpd:latest
ports:
- 8080:80:tcp
- 8443:443:tcp
environment:
PUID: ''
PGID: ''
volumes:
- /portainer/Files/AppData/Config/apache-httpd:/usr/local/apache2/htdocs/
Alternative Methods
For more installation options, see the Documentation in the GitHub repo