Alpen is a lightweight Docker image for building an Nginx server with PHP. The goal is to use the latest alpine Docker image to make Nginx and PHP without hardcoding the version number on the docker-compose.yml
to ensure we always have the newest version in place.
I couldn't find a simple Docker image that's easy to understand and doesn't add any extension to quickly spin up an Nginx server with the latest version of PHP.
It doesn't come with any PHP extension installed to keep it simple. So, it won't work when connecting with MySQL or any other database engines.
- Clone the repository
https://github.com/mazik/alpen
- Spin up Docker container
docker compose up -d
- Place your PHP files under the
www
directory - Visit
http://localhost:80
Alpen is open-sourced software licensed under the MIT license.