Skip to content

LuckyGeck/docker-fastcgi-daemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-fastcgi-daemon

Docker setup for nginx + fastcgi-daemon2

Setup endpoints

Network endpoints

  • $DOCKER_MACHINE_IP:8000 - nginx started
  • $DOCKER_MACHINE_IP:8000/test - your fastcgi-daemon will listen on this URL
  • $DOCKER_MACHINE_IP:8001 - monitoring port for fastcgi-daemon

File system endpoints

  • /tmp/fastcgi/fastcgi_daemon.sock - socket for nginx <-> fastcgi-daemon interaction
  • fastcgi_data/
    • default_nginx_site.conf - nginx default site configuration
    • fastcgi.conf - fastcgi-daemon configuration
  • src/ - folder with your project's sources (contains sample Makefile + .cpp)
  • logs/ - nginx logs

Requirements

To use this docker setup via make you should have the following commands in your $PATH:

  • docker
  • docker-compose
  • make

Quick Start

Start from scratch

Starts up docker via docker-compose with nginx + fastcgi-daemon and built version of your fastcgi project

  • make

Reload your .so in fastcgi-daemon

  • make restart

Build your fastcgi project

  • make build

Cleanup all setup

  • make clean

About

Docker setup for nginx + fastcgi-daemon2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published