Simple service to locally mirror files provided by a 3rd-party server.
160
Docker service to create a network-local mirror of a remote server providing files via HTTP.
zstd, br and gzip compression with maximum compression levelContent-Length)eTag)Basic usage:
docker run -d -p 8080:8080 -e TARGET=https://cdn.jsdelivr.net/npm/ genhttp/local-mirror
wget http://localhost:8080/jquery/dist/jquery.min.js
Docker compose syntax:
services:
mirror:
image: genhttp/local-mirror
ports:
- "8080:8080"
environment:
- TARGET=https://cdn.jsdelivr.net/npm/
- CACHE_MODE=persistent # or memory
By default, the service will store all responses in /app/cache/. You can mount this path as a volume to keep
the cache when re-creating the container.
Setting CACHE_MODE to memory will keep all objects in memory until the container is restarted. There is no
memory limit applied so this mode should only be used in a safe environment where we know how big the cache might grow.
Content type
Image
Digest
sha256:ab0ac1226…
Size
48.7 MB
Last updated
over 1 year ago
docker pull genhttp/local-mirror