1.2 KiB
1.2 KiB
Swarm wit hredis
Basic examples on how to deploy and use bunkerized-nginx within a Docker Swarm cluster and use redis to distribute the blacklists. See the Docker Swarm section of the documentation for more information.
Architecture
Swarm
This example uses two overlay networks needed by the services :
$ docker network create -d overlay --attachable net_config
$ docker network create -d overlay --attachable net_services
First you need to create the redis service : see redis.yml.
Then, it's time to setup bunkerized-nginx and the autoconf with Swarm mode activated : see nginx-autoconf.yml.
Then you can add and delete your web services and autoconf will automatically generate the configuration based on your labels : see services.yml.