This application is a versatile and comprehensive solution that provides a framework for various Docker containers. It can include different types of services, such as backends in Java or PHP, any kind of frontend, or even a complete Docker stack. Modify it to suit your needs. Check out our upcoming Easy-Stacks soon. With this simple stack, you can build your own Docker images and publish them either locally or through GitHub pipelines. For your own Docker containers, you will need a registry such as Docker Hub or a similar option, like GitHub's container registry.
Caution! Caution! This stack is intended for development use only and is not configured for production. For production use, please refer to the "Easy-Stack-Prod" stack - comming soon.
We strongly recommend changing all passwords in the .env.dist
file. These are purely test data and should not be used even in development mode.
- Create a
.env
file next to.env.dist
:cp .env.dist .env
- Open the
.env
file and update the relevant values. - The
.env
file will be automatically loaded if it exists and will override the corresponding environment variables.
- Docker and Docker Compose must be installed on the system.
- Git
- Docker
- Docker Compose
- Make
Clone this Project
git clone [email protected]:Opillion-GmbH-Co-KG/easy-stack-php.git
cd ./easy-stack-php
To start and install this stack:
make start
or
make restart
By default, the stack consists of a single Docker container. However, you can easily add additional containers to provide various services and extend the functionality of the stack. The main container and any additional containers you configure are described below:
- Image:
php-fpm
- Description: A PHP-FPM container based on a custom Docker image with a preconfigured environment.
- Ports (preconfigured):
- ${PHP_EXTERNAL_PORT} (Default: 9000)
- Name:
php-fpm
- Volumes:
./backend:/var/www
/etc/localtime:/etc/localtime:ro
(timezone)./.docker/dev/php8/conf.d:/usr/local/etc/php/conf.d
- User:
${DOCKER_USER}