Skip to content
This repository was archived by the owner on May 25, 2018. It is now read-only.

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESTRI

Docker Automated build Docker Build Status Docker Pulls

Simple nginx container that serves static files from public Amazon S3.

Notes

  • Currently only supports S3 buckets with public policy (see below)
  • SSL termination is meant to be handled by our Rancher instance (Docker orchestration)

How to use

1 - Create an S3 bucket with public policy:

{
  "Version": "2014-06-14",
  "Statement": [
    {
      "Sid": "AllowPublicRead",
      "Effect": "Allow",
      "Principal": {
      "AWS": "*"
    },
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::BUCKET_NAME_HERE/*"
    }
  ]
}

2 - Run Estri with proper env var

docker run -d \
  --name estri \
  -p 8080:8080 \
  -e S3_BUCKET=BUCKET_NAME_HERE \  # required
  -e S3_DIR=BUCKET_DIR_HERE \  # optional
  -e S3_DOMAIN=sgp1.digitaloceanspaces.com \  # optional, default: s3.amazonaws.com
  -e DNS_RESOLVER=8.8.8.8 \  # optional, default: 1.1.1.1
  coralteam/estri:latest

3 - Do not forget to replace BUCKET_NAME_HERE with your bucket name

About

Simple nginx container that serves static files from public Amazon S3

Resources

Stars

0 stars

Watchers

6 watching

Forks

Releases

Packages

Contributors

Languages