Sign inSign up

eriksoderblom/alpine-apache-php

By eriksoderblom

Updated 3 months ago

Alpine based image with apache2 and php8

Image
2

3.4K

eriksoderblom/alpine-apache-php repository overview

alpine-apache-php

Alpine based image with apache2 and php8

You can find the source at github: https://github.com/eriksoderblom/alpine-apache-php

Define environnement variables (optional)

Build

Replace alpine-apache-php and tags with whatever you want when building your own image.

docker build -t alpine-apache-php:latest .
Run

Change the left side port 80, 443 and /docker/data/www to your preferred values.
You can use the image name from the previous step if you built your own image.

docker run --detach \
    --name alpine-apache-php \
    --publish 80:80 \
    --publish 443:443 \
    --restart unless-stopped \
    --volume /docker/data/www:/htdocs \
    eriksoderblom/alpine-apache-php:latest
Customized run
docker run --detach \
    --name alpine-apache-php-custom \
    --hostname alpine-apache-php.local \
    --env HTTP_SERVER_NAME="www.example.xyz" \
    --env HTTPS_SERVER_NAME="www.example.xyz" \
    --env SERVER_ADMIN="[email protected]" \
    --env TZ="Europe/Paris" \
    --env PHP_MEMORY_LIMIT="512M" \
    --publish 80:80 \
    --publish 443:443 \
    --restart unless-stopped \
    --volume /docker/data/www:/htdocs \
    eriksoderblom/alpine-apache-php:latest

Tag summary

Content type

Image

Digest

sha256:c32aaa409

Size

28.7 MB

Last updated

3 months ago

docker pull eriksoderblom/alpine-apache-php