Self-hosted image delivery and on-the-fly transforms
220
Self-hosted image delivery and on-the-fly transforms — resize, format conversion, blur, caching, and JWT-protected URLs. Built in Rust for production workloads. Part of the BeTechSpark Media Platform.
@betechspark/imageproxy-client, @betechspark/imageproxy-server, @betechspark/imageproxy-react on npmThis Docker image is the Community Edition (CE). Uploads are handled by the separate File Server — Image Proxy is read-only for source retrieval and transforms.
Minimal setup: in-memory metadata, filesystem + URL sources, no S3 required.
docker run -d --name imageproxy \
-p 3001:3001 \
-e DATABASE_URL=memory \
-e IMAGE_SOURCES_ENABLED=filesystem,url \
-e JWT_SECRET=change-me-in-production \
-e RUST_LOG=info \
florianbloechinger/imageproxy:latest
curl http://localhost:3001/health
Expected: {"status":"healthy","service":"imageproxy",...}
services:
imageproxy:
image: florianbloechinger/imageproxy:latest
ports:
- "3001:3001"
environment:
PORT: "3001"
DATABASE_URL: memory
IMAGE_SOURCES_ENABLED: filesystem,url
JWT_SECRET: change-me-in-production
RUST_LOG: info
Full guides (persistence, S3, Kubernetes, Next.js): Image Proxy docs.
| Tag | Description |
|---|---|
latest | Latest successful build from main |
main-<sha> | Specific commit on main (e.g. main-abc1234) |
v1.2.3 / 1.2.3 | Release tags when published |
Serve and resize via URL parameters on /asset/:encoded_key:
GET /asset/<encoded-key>?w=800&h=600&fit=cover&f=webp&q=80
Common parameters:
| Param | Description |
|---|---|
w, width | Target width |
h, height | Target height |
q, quality | JPEG/WebP quality (1–100) |
f, format | Output format: jpeg, png, webp, gif |
fit | cover, contain, fill, inside, outside |
blur | Blur strength (0.5–500) |
thumb | Ultra-fast thumbnail mode (true / false) |
Source keys support prefixes such as fs/, s3/, url/, and fileserver/ (when paired with File Server). See the routes reference.
| Variable | Default | Description |
|---|---|---|
PORT | 3001 | HTTP port |
DATABASE_URL | memory | Metadata store (memory, fs:…, postgres://…, surrealdb:…) |
JWT_SECRET | (required) | JWT signing secret — set a strong value in production |
IMAGE_SOURCES_ENABLED | s3,filesystem,url | Comma-separated backends to enable |
FS_IMAGE_ROOTS | ./uploads | Filesystem source roots |
S3_* | — | S3-compatible object storage settings |
URL_ALLOWLIST | — | Allowed host suffixes when using the URL source |
RUST_LOG | — | Log level (e.g. info, debug) |
For the full list, see Environment variables in the docs.
Share the blob volume and point Image Proxy at File Server blobs on disk:
services:
fileserver:
image: florianbloechinger/fileserver:latest
environment:
DATABASE_KIND: inmemory
STORAGE_KIND: fs
FILESERVER_STORAGE_ROOT: /app/data
FILESERVER_SIGNING_SECRET: change-me-in-production
volumes:
- media_blobs:/app/data
imageproxy:
image: florianbloechinger/imageproxy:latest
ports:
- "3001:3001"
environment:
DATABASE_URL: memory
IMAGE_SOURCES_ENABLED: filesystem,url,fileserver
FILESERVER_BASE_URL: http://fileserver:3004
FILESERVER_BLOB_SOURCE_PREFIX: fs/data
FS_IMAGE_ROOTS: /app/data
JWT_SECRET: change-me-in-production
volumes:
- media_blobs:/app/data:ro
depends_on:
- fileserver
volumes:
media_blobs:
Without FILESERVER_BLOB_SOURCE_PREFIX and a shared volume, fileserver/<id> asset keys fail with 403 (Image Proxy tries the disabled S3 backend).
| Component | Role |
|---|---|
| Image Proxy (this image) | Transform, cache, and deliver images |
| File Server | Uploads, signed URLs, deduplication, TUS |
| @betechspark npm packages | URL builders, JWT/HMAC signing, React & Next.js helpers |
Typical flow: app uploads via File Server → originals in your storage → Image Proxy serves optimized variants to users.
| Edition | Image |
|---|---|
| Community (CE) | florianbloechinger/imageproxy — this repository |
| Enterprise (EE) | Advanced cache metadata, licensing — contact BeTechSpark |
BeTechSpark — self-hosted media stack. You own the infrastructure, data, and delivery.
Content type
Image
Digest
sha256:1309e2b27…
Size
80.5 MB
Last updated
6 months ago
docker pull florianbloechinger/imageproxy