RESIZR is a high-performance, Go microservice for image upload, processing, and delivery.
821
RESIZR is a production-ready Go microservice for image upload, processing, and delivery. Built with modern cloud-native patterns, it provides RESTful APIs for image management with automatic multi-resolution processing, Redis-based metadata storage, and S3-compatible file storage.
$ docker run -d \
--name resizr \
-p 8080:8080 \
-e CACHE_TYPE=badger \
-e S3_ENDPOINT=https://s3.amazonaws.com \
-e S3_ACCESS_KEY=your_access_key \
-e S3_SECRET_KEY=your_secret_key \
-e S3_BUCKET=your_bucket \
-v ./data:/data \
k0lin/resizr:dev
services:
resizr:
image: k0lin/resizr:dev
restart: unless-stopped
ports:
- "8080:8080"
environment:
- CACHE_TYPE=badger
- CACHE_DIRECTORY=/data/badger
- S3_ENDPOINT=https://s3.amazonaws.com
- S3_ACCESS_KEY=your_access_key
- S3_SECRET_KEY=your_secret_key
- S3_BUCKET=your_bucket
- RESIZE_MODE=smart_fit
- RATE_LIMIT_UPLOAD=100
- RATE_LIMIT_DOWNLOAD=100
- RATE_LIMIT_INFO=50
volumes:
- ./badger-data:/data/badger
| Environment Variable | Default | Description |
|---|---|---|
| PORT | 8080 | HTTP server port |
| CACHE_TYPE | redis | Cache backend (redis/badger) |
| S3_ENDPOINT | - | S3 endpoint URL |
| S3_ACCESS_KEY | - | S3 access key |
| S3_SECRET_KEY | - | S3 secret key |
| S3_BUCKET | - | S3 bucket name |
| MAX_FILE_SIZE | 10485760 | Max upload size (bytes) |
| IMAGE_QUALITY | 85 | JPEG quality (1-100) |
| RESIZE_MODE | smart_fit | Image resize algorithm (smart_fit/crop/stretch) |
latest - Latest stable release (NOT YET PUBLISHED)dev - Latest dev releaseThis project is licensed under the Apache-2.0 license.
Content type
Image
Digest
sha256:9a2bf995a…
Size
25.8 MB
Last updated
10 months ago
docker pull k0lin/resizr:dev