Have S3 objects in a private bucket that you want to serve via nginx
ACCESS_KEY
- AWS Access KeySECRET_KEY
- AWS Secret KeyBUCKET
- the bucket namePREFIX
- a prefix to prepend to every key. (useful if you want to limit access to specific keys). optional.
docker run -e BUCKET=some_bucket -e PREFIX=key/prefix/ -e ACCESS_KEY=someKey -e SECRET_KEY=someSecret -p 80:80
Example:
docker build -t quickbooks2018/s3-reverse-proxy:latest .
docker run --name s3-private-bucket-reverse-proxy -e BUCKET=cloudgeeks-ca -e ACCESS_KEY=AKIA5VC32LF7K5QURUWC -e SECRET_KEY=oKnRvwYc8IHRGe3xK2IVUg6hfnCBzzPGb88RUq9j -p 80:80 --restart unless-stopped -id quickbooks2018/s3-reverse-proxy:latest