Skip to content

Nginx and Node.js docker containers for testing proxying and static file serving

Notifications You must be signed in to change notification settings

dhenze/nginx-docker-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Dockerized Nginx static file checker

Sample project using two linked docker containers

  • static-server: An nginx proxy that checks if a file exists on the filesystem for the current URI and serves it, or proxies the request to an application server otherwise. E.g. GET /some/route -> /static_root/some/route.html.

  • api_server: Very simple test application receiving the proxied requests.

Try

  • Make sure to have docker installed and running.
    (Archlinux) pacman -S docker && systemctl start docker

  • Fetch both docker images. (TODO)
    docker pull olanod/test-api-server olanod/test-static-server

  • or Build the images
    docker build olanod/test-api-server . (from api-server)
    docker build olanod/test-static-server . (from static-server)

  • Run to test the created containers
    docker run --name api-server olanod/test-api-server
    docker run -p 80 --link api-server olanod/test-static-server

About

Nginx and Node.js docker containers for testing proxying and static file serving

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published