Giter Club home page Giter Club logo

alpine-apache-php's Introduction

alpine-apache-php

Alpine based image with apache2 and php8

You can use either of these built images:
ghcr.io/eriksoderblom/alpine-apache-php:latest
eriksoderblom/alpine-apache-php:latest

You can find other (older versions) at Docker Hub

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

alpine-apache-php's People

Contributors

ciscowire avatar eriksoderblom avatar williamdes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.