Skip to content

DirtyUnicorns/DU-Download-Site

 
 

Repository files navigation

DU Download Site

Example PHP-FPM 7.3 & Nginx 1.18 setup for Docker, build on Alpine Linux. The image is only +/- 35MB large.

  • Built on the lightweight and secure Alpine Linux distribution
  • Very small Docker image size (+/-35MB)
  • Uses PHP 7.3 for better performance, lower CPU usage & memory footprint
  • Optimized to only use resources when there's traffic (by using PHP-FPM's on-demand PM)
  • The servers Nginx, PHP-FPM and supervisord run under a non-privileged user (nobody) to make it more secure
  • The logs of all the services are redirected to the output of the Docker container (visible with docker logs -f <container name>)
  • Follows the KISS principle (Keep It Simple, Stupid) to make it easy to understand and adjust the image to your needs
  • Slack slash commands integration

Docker Pulls nginx 1.18.0 php 7.3 License MIT License APACHE

Usage

Most configuration is done in the .env and the docker-compose.yml. You can clone this repo and rename .env.sample to .env and change all the parameters.
You will need to change the docker-compose.yml volume entry to point the devices folder to the proper location on the filesystem. Then just run docker-compose up.

Slack Integration

This is configured to accept Slack slash commands. Follow the directions here Slack Slash Commands API. Put the webhook and the Slack token in the .env file. When setting up the slash command you will need to point it to yourdomain.com/update.php

Packages

 
 
 

Languages

  • PHP 56.7%
  • HTML 22.2%
  • Dockerfile 8.2%
  • CSS 6.7%
  • JavaScript 6.1%
  • Shell 0.1%