Sign inSign up

sparkd/nginx-staticfile

By sparkd

•Updated over 8 years ago

Build an nginx container that will serve up a simple html file

Image
0

109

sparkd/nginx-staticfile repository overview

⁠Overview

A sample template for CloudFormation to deploy a simple nginx server that serves a static web page.

⁠Assumptions
⁠How-to deploy

Run ./deploy.sh (deploy-http|stop-http|deploy-elb|stop-elb)

  • deploy-http: Will start a single EC2 http instance to serve index.html and return the DNS name of that instance
  • stop-http: Deletes the stack created by the above command
  • deploy-elb: Will start two EC2 http instances behind an ELB to serve index.html and return the DNS name of that load balancer
  • stop-elb: Stops the stack created by the above command
⁠How to update
  • Update index.html as necessary and build the image on Docker Hub (this repo is automatically built here: docker.com/r/sparkd/nginx-staticfile/)
  • Redeploy the stack

Tag summary

Content type

Image

Digest

Size

7.5 MB

Last updated

over 8 years ago

docker pull sparkd/nginx-staticfile