Skip to content

Run FastCGI applications with fcgiwrap and nginx on Alpine Linux (docker)

License

Notifications You must be signed in to change notification settings

elhardoum/fcgiwrap-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fcgiwrap nginx server

Run FastCGI applications with fcgiwrap and nginx on Alpine Linux (docker).

This docker package comes with python support, and runs a sample python app.

Usage

Using docker:

# run on port 9000
docker run -p 9000:80 -d elhardoum/fcgiwrap-server:latest

# or, run with a custom www folder
docker run -p 9000:80 -v ./path/to/local/www:/var/www/html -d elhardoum/fcgiwrap-server:latest

# or, run a local build - cd to where Dockerfile is
docker run -p 9000:80 -d $(docker build -q .)

Using docker-compose:

docker-compose up -d

Hook to entrypoint.sh

You may hook to the entrypoint.sh script and run shell commands before services are loaded, so it will happen every time you start the containers. Just mount your local sh file to /var/opt/entrypoint-hook.sh.

For that, you may attach a volume -v /path/to/local/entrypoint-hook.sh:/var/opt/entrypoint-hook.sh, or via docker-compose:

# ...
    volumes:
      # ...
      - ./entrypoint-hook.sh:/var/opt/entrypoint-hook.sh
# ...

About

Run FastCGI applications with fcgiwrap and nginx on Alpine Linux (docker)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published