Sign inSign up

siniidrozd/prerender-cluster

By siniidrozd

Updated about 3 years ago

Lightweight Cluster Prerender container built on Alpine Linux with Node

Image
1

644

siniidrozd/prerender-cluster repository overview

Cluster Prerender

Lightweight Cluster Prerender container built on Alpine Linux with unlimited number of requests

Requirements

  • Docker

Usage

Pull and run the image:

docker pull siniidrozd/prerender-cluster
docker run -p 3000:3000 siniidrozd/prerender-cluster

Prerender will now be running on http://localhost:3000. Try the container out with curl:

curl http://localhost:3000/render?url=https://www.example.com/

Prerender memory cache

You can customize cache behavior with environment variables :

  • CACHE_MAXSIZE=1000 : max number of objects in cache
  • CACHE_TTL=6000 : time to live in seconds
docker run -p 3000:3000 -e CACHE_MAXSIZE=1000 -e CACHE_TTL=6000 siniidrozd/prerender-cluster

Other params

  • REQUEST_TIMEOUT=25000 : request timout
  • MONITOR=1 : parse monitor
  • MAX_CONCURRENCY=4 : max instance count

Tag summary

Content type

Image

Digest

sha256:cf15800cf

Size

283.7 MB

Last updated

about 3 years ago

docker pull siniidrozd/prerender-cluster