Hello,
I would like to give to the community an example of using docker-rollout with a simple vanilla NGINX with docker-gen.
I didn't want to write my NGINX config in docker labels, I wanted to keep using the flexibility of nginx.conf files. And using mounting the docker socket in a separate container (not the nginx webserver) is more secure.
Here is the source code: https://github.com/unixfox/simple-docker-rollout-nginx-dockergen
I tested with wrk and got no "errors" report:
Running 1m test @ http://localhost:8080
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 2.31ms 2.49ms 40.69ms 86.72%
Req/Sec 2.99k 3.09k 8.86k 70.75%
357150 requests in 1.00m, 61.31MB read
Socket errors: connect 0, read 17, write 0, timeout 0
Requests/sec: 5949.19
Transfer/sec: 1.02MB