Apache 2.4 with Let's Encrypt support.
10K+
Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows. A secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.
Apache HTTP Server Version 2.4.
X-Forwarded-For support for default docker subnet/var/www/var/wwwwww-data uses the same UID as the ubuntu accountrewrite, headers, ssl, remoteipLETS_ENCRYPT_ environment variables are optional.
# create the container
docker create \
--name mysite \
-p 8080:80 \
-p 8443:443 \
-e PUID=$(id -u) \
-e PGID=(id -g) \
-e LETS_ENCRYPT_DOMAINS=97e0973.ngrok.io \
-e [email protected] \
-e LETS_ENCRYPT_STAGING=0 \
-v $HOME/public_html:/var/www/html \
-v $HOME/.certbot/mysite:/etc/letsencrypt/live \
andrewmackrodt/apache2
| Parameter | Function |
|---|---|
-p 8080:80 | Expose port 80 on the host |
-p 8443:443 | Expose port 443 on the host |
-e PUID=1000 | The user id, recommended: $(id -u) |
-e PGID=1000 | The group id, recommended: $(id -g) |
-e SUDO_NOPASSWD=0 | Set to 1 to allow passwordless sudo |
-e LETS_ENCRYPT_DOMAINS= | Domain's to request certificates for, comma separated |
-e LETS_ENCRYPT_EMAIL= | E-mail address to receive Let's Encrypt Notifications |
-e LETS_ENCRYPT_STAGING=0 | Set to "1" to use staging server |
-v /var/www/html | Apache DocumentRoot |
-v /etc/letsencrypt/live | Certbot Let's Encrypt directory |
Content type
Image
Digest
sha256:e643aa2e5…
Size
78.6 MB
Last updated
4 months ago
docker pull andrewmackrodt/apache2