Prerender service using PhantomJS + Express + MongoDB with GZIP to cache pages
328
Express Prerender MongoDB allows any webpage served with nginx to be prerender in order to improve SEO position.
Docker accepts the following environment variables:
**MONGO_ADDR: ** ADDR for Database cluster/server in the following format
Example: 'IP_1:PORT1, IP_2:PORT2,.../MONGO_DATABASE?replicaSet=NAME_OF_REPLICASET'
**MONGO_EXPIRE_SECONDS: **TTL **ENV MONGO_COLLECTION: ** Collection in database
DockerFile has this values by default
ENV MONGO_ADDR localhost:27017/Prerender ENV MONGO_COLLECTION Cache ENV MONGO_EXPIRE_SECONDS 3600
An example with Replica SET:
sudo docker run --name express-mongodb -e MONGO_ADDR="IP_1:PORT_1,IP_2:PORT_2,1IP_3:PORT_3/Prerender?replicaSet=rs0" -e MONGO_EXPIRE_SECONDS=200 -p 8080:8080 devopsbq/express-prerender-mongodb
Content type
Image
Digest
Size
229.4 MB
Last updated
over 10 years ago
docker pull devopsbq/express-prerender-mongodb