Skip to content

Opillion-GmbH-Co-KG/easy-stack-php

Repository files navigation

EASY STACK PHP 8.4

Introduction

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.

Important Notice

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.

How to Update Environment Variables

  1. Create a .env file next to .env.dist:
    cp .env.dist .env
  2. Open the .env file and update the relevant values.
  3. The .env file will be automatically loaded if it exists and will override the corresponding environment variables.

Installation and Starting the Application

Prerequisites

  • Docker and Docker Compose must be installed on the system.

Before you run this project, ensure the following are installed on your host system:

  • Git
  • Docker
  • Docker Compose
  • Make

Build this stack

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

The stack up and running:

Alt text

Docker Container

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:

PHP-FPM

  • 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}

This Stack is based on Easy Stack Mini

Easy Stack Mini - DALL-E Image

About

This a Php 8.4 Docker Compose setup for rapid prototyping or testing.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published