Lightweight CDN server (NGINX) for S3-Backend (e.g. minio)
GitHub: https://github.com/indece-official/s3-cdn
docker run -p 8080:8080 -e ACCESS_KEY=my-accesskey -e SECRET_KEY=my-secretkey -e SOURCE_PATH='s3://my-s3-bucket/' indece/s3-cdn:latest
Opens a port on 8080 and serves the files from the bucket
Important: Clones all files from the SOURCE_PATH to /data, even if a file is not accessed via HTTP.
| Variable | Required | Default | Description |
|---|---|---|---|
| ACCESS_KEY | yes | S3-Access-Key | |
| SECRET_KEY | yes | S3-Secret-Key | |
| SOURCE_PATH | yes | Source-Path for s3 sync (e.g. 's3://my-bucket-name/') | |
| CRON_SCHEDULE | "*/15 * * * *" | Cron shedule for s3 sync | |
| S3SYNC_ARGS | "" | Extra options passed to aws-cli for s3 sync |
The path /health always returns 200 ok when nginx is running (this doesn't verify if the s3-sync is ok).
Content type
Image
Digest
sha256:2915d3767…
Size
44.9 MB
Last updated
9 months ago
docker pull indece/s3-cdn