GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - emrys-dev/php-server: Docker Compose project with Nginx, Naxsi, Varnish, PHP-FPM, and SSL termination. Tests only. Do not use it in production!

BranchesTags
Open more actions menu

Latest commit

 

History

37 Commits
37 Commits

Folders and files

NameName
Last commit message
Last commit date
build
build
 
 
config
config
 
 
data
data
 
 
doc
doc
 
 
log
log
 
 
src
src
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
index.php
index.php
 
 

Repository files navigation

Dockerized Webserver Project

  • Nginx/Nasxi/SSL container
  • Varnish cache container
  • Nginx web server container
  • PHP-FPM 7.2+ container
  • PerconaDB container

Generate Certificates:

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /mnt/d/Projects/webserver/ssl/nginx.key -out /mnt/d/Projects/webserver/ssl/nginx.crt

sudo openssl dhparam -out /mnt/d/Projects/webserver/ssl/nginx.pem 4096

Build and pull SSL image:

docker build -t ssl . docker tag ssl labdocodigo/ssl docker push labdocodigo/ssl:latest

Build and pull VARNISH image:

docker build -t varnish . docker tag varnish labdocodigo/varnish docker push labdocodigo/varnish:latest

Build and pull WEB image:

docker build -t web . docker tag web labdocodigo/web docker push labdocodigo/web:latest

Build and pull PHP image:

docker build -t php . docker tag php labdocodigo/php docker push labdocodigo/php:latest

COMMANDS

docker images docker ps (docker container ls) docker-compose up -d docker-compose down docker stop $(docker ps -a -q) docker rm $(docker ps -a -q) docker system prune -a docker network ls docker network rm docker exec -it ssl nginx -s reload docker exec -it web nginx -s reload docker exec -it varnish bash -x /etc/init.d/varnishd reload git add * git commit -m "New itens" git push origin master

TODO

  • Upload folder security
  • PHP HTTP filters
  • Varnish cache headers
  • Log rotate
  • Database
  • Web service system
  • Daemons system

About

Docker Compose project with Nginx, Naxsi, Varnish, PHP-FPM, and SSL termination. Tests only. Do not use it in production!

Topics

mariadbnaxsinginxphp-fpmredisvarnish

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.