1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00

update renderjs

This commit is contained in:
kev 2014-12-12 21:18:45 +08:00
parent 8a7f76b39b
commit 6280d16fc7
2 changed files with 25 additions and 13 deletions

View File

@ -9,9 +9,19 @@ Dockerfile for building an image that runs webkit rendering service.
## Running
$ docker run -p 1024:1024 -p 9001:9001 renderjs
$ docker run -d -p 1024:1024 -p 9001:9001 renderjs
## Playing
# raw output
$ http :1024 url=http://datageek.info/
# json output
$ http :1024/json/ url=http://datageek.info/
# supervisor
$ firefox http://localhost:9001/
# haproxy
$ firefox http://localhost:1024/haproxy?stats

View File

@ -24,17 +24,19 @@ defaults
frontend front
bind 0.0.0.0:1024
default_backend back
bind 0.0.0.0:1024
default_backend back
stats enable
stats admin if TRUE
backend back
server s0 127.0.0.1:8080 maxconn 10
server s1 127.0.0.1:8081 maxconn 10
server s2 127.0.0.1:8082 maxconn 10
server s3 127.0.0.1:8083 maxconn 10
server s4 127.0.0.1:8084 maxconn 10
server s5 127.0.0.1:8085 maxconn 10
server s6 127.0.0.1:8086 maxconn 10
server s7 127.0.0.1:8087 maxconn 10
server s8 127.0.0.1:8088 maxconn 10
server s9 127.0.0.1:8089 maxconn 10
server s0 127.0.0.1:8080 maxconn 10
server s1 127.0.0.1:8081 maxconn 10
server s2 127.0.0.1:8082 maxconn 10
server s3 127.0.0.1:8083 maxconn 10
server s4 127.0.0.1:8084 maxconn 10
server s5 127.0.0.1:8085 maxconn 10
server s6 127.0.0.1:8086 maxconn 10
server s7 127.0.0.1:8087 maxconn 10
server s8 127.0.0.1:8088 maxconn 10
server s9 127.0.0.1:8089 maxconn 10