I want to add/remove servers in my nginx running inside a docker container
I use ADD command in Dockerfile to add my nginx.conf to /etc/nginx dir.
#
restarting the container is not advisable when you initialize Docker Swarm because it may remove the nginx service. So if you need an alternative aside docker restart
; You can go inside the container and just run nginx -s reload
For example, in docker env, if you have the container named nginx
docker exec nginx -s reload