An Apache HTTPd images forked from offical repository
5.5K
An Apache HTTPd 2.4 image forked from the official repository.
With configuration:
Works also with:
Allow environment variables PUID and PGID to change the user which executes the HTTP process.
You can run this container with the Docker client:
docker run -d \
--volume /docker/volumes/www:/var/www \
--volume /docker/volumes/httpd24/conf/vhost.d:/usr/local/apache2/conf/vhost.d:ro \
--volume /docker/volumes/httpd24/conf/ssl:/usr/local/apache2/conf/ssl:ro \
-p 80:80 \
-p 443:443 \
llaumgui/httpd24
You can use this container in a docker-compose.yml file:
httpd:
container_name: httpd
image: llaumgui/httpd24
restart: always
environment:
TZ: 'Europe/Paris'
PUID: 82
PGID: 82
volumes:
- /docker/volumes/www:/var/www/
- /docker/volumes/httpd24/conf/vhost.d:/usr/local/apache2/conf/vhost.d:ro
- /docker/volumes/httpd24/conf/ssl:/usr/local/apache2/conf/ssl:ro
ports:
- "80:80"
- "443:443"
| Variable | Description | Default Value |
|---|---|---|
TZ | Timezone configuration. | N/A |
PUID | User ID for the httpd process (www-data). | 82 |
PGID | Group ID for the httpd process (www-data). | 82 |
Content type
Image
Digest
sha256:3b5b979f4…
Size
20.7 MB
Last updated
6 days ago
docker pull llaumgui/httpd