Skip to content

A dockerized environment to build CLI, micro-services and/or web applications based on PHP and using built-in webserver with SupervisorD

License

Notifications You must be signed in to change notification settings

AlcidesRC/dockerized-php-supervisor

Repository files navigation

Continuous Integration

Dockerized PHP - Supervisor

A dockerized environment based on Supervisor + PHP-FPM running on a Linux Alpine container.

[TOC]


Summary

This repository contains a dockerized environment for building PHP applications based on php:8.3.12-fpm-alpine with Supervisor.

Highlights

  • Unified environment to build CLI, web applications and/or micro-services based on PHP8.
  • Multi-stage Dockerfile to allows you to create an optimized development or production-ready Docker images
  • Uses the built-in PHP webserver.
  • PHP-FPM and built-in webserver are managed by Supervisor.
  • Everything in one single Docker container.

Requirements

To use this repository you need:

  • Docker - An open source containerization platform.
  • Git - The free and open source distributed version control system.
  • Make - A command to automate the build/manage process.
  • jq - A lightweight and flexible command-line JSON processor.

Built with

Type Component Description
Infrastructure Docker Containerization platform
Service Supervisor Supervisor is a client/server system that allows its users to control a number of processes on UNIX-like operating systems.
Service PHP-FPM PHP with FastCGI Process Manager
Miscelaneous Bash Allows to create an interactive shell within containerized service
Miscelaneous Make Allows to execute commands defined on a Makefile
Miscelaneous jq Allows to beautify the Docker inspections in JSON format

Development Environment

Important

This development environment is based on Dockerized PHP, a framework agnostic dockerized environment to create and deploy PHP applications.

Please take a look to the README.md file to know how to familiarize with it and get up and running.

Important

Default application is based on PHP Skeleton, a minimalistic boilerplate to create PHP applications from scratch.

Please take a look to the README.md file to know how to familiarize with it and get up and running.


Getting Started

Just clone the repository into your preferred path:

$ mkdir -p ~/path/to/my-new-project && cd ~/path/to/my-new-project
$ git clone git@github.com:alcidesrc/dockerized-php-supervisor.git .

Quickstart

$ make init

TL;DR

Building the container

$ make build

Starting the container service

$ make up

Accessing to Supervisor admin panel

$ make open-supervisor

Accessing to web application

$ make open-website

Stopping the container service

$ make down

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities:

PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY

Supported Versions

Only the latest major version receives security fixes.

Reporting a Vulnerability

If you discover a security vulnerability within this project, please open an issue here. All security vulnerabilities will be promptly addressed.


License

The MIT License (MIT). Please see LICENSE file for more information.

About

A dockerized environment to build CLI, micro-services and/or web applications based on PHP and using built-in webserver with SupervisorD

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy