Skip to content
This repository has been archived by the owner on May 25, 2018. It is now read-only.
/ estri Public archive

Simple nginx container that serves static files from public Amazon S3

Notifications You must be signed in to change notification settings

coralhq/estri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Packages

No packages published