Portainer Templates

Apache Httpd

WebProxy

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/tcp8443:443/tcp

Volumes

/usr/local/apache2/htdocs/ : /portainer/Files/AppData/Config/apache-httpd

Restart Policy unless-stopped Env Vars

PUID=1000PGID=1000

Installation

Via Portainer

  1. Ensure both Docker and Portainer are installed, and up-to-date
  2. Log into your Portainer web UI
  3. Under Settings → App Templates, paste the below URL
  4. Head to Home → App Templates, and the list of apps will show up
  5. 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 demo

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

Container Documentation