arodik / docker-rendertron

Dockerized Rendertron with ENV variables configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-rendertron

Dockerized Rendertron with ENV variables configuration

Quick test

docker run -e="rendertron_cache=filesystem" -e="rendertron_width=1440" -e="rendertron_cacheDurationMinutes=60" -it -p 3000:3000 z1bba/env-rendertron

Configuration

See the configuration instructions in the official Renderton docs. Below you can find the mapping to the ENV variables

JSON config variable name Env variable Type
timeout rendertron_timeout number
width rendertron_width number
height rendertron_height number
reqHeaders rendertron_reqHeaders Stringified JSON
cache rendertron_cache boolean
cacheConfig.cacheDurationMinutes rendertron_cacheDurationMinutes number
cacheConfig.cacheMaxEntries rendertron_cacheMaxEntries number
cacheConfig.snapshotDir rendertron_snapshotDir string
renderOnly rendertron_renderOnly Stringified JSON
closeBrowser rendertron_closeBrowser boolean
restrictedUrlPattern rendertron_restrictedUrlPattern string

More examples

# use the JSON value
docker run -e="rendertron_renderOnly=[\"http://google.com\"]" -it -p 3000:3000 z1bba/env-rendertron

About

Dockerized Rendertron with ENV variables configuration

License:MIT License


Languages

Language:JavaScript 65.8%Language:Dockerfile 31.7%Language:Shell 2.5%