<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 9, 2019 at 11:12 AM Esteban Maringolo <<a href="mailto:emaringolo@gmail.com">emaringolo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello all,<br>
<br>
Did anybody played/experimented with having Docker containers where we<br>
can spawn a new container for each new session, or get a "sticky"<br>
container for the same session the same way we can do it with nginx or<br>
other reverse proxies?<br>
<br>
Not an actual need, but I'm about to deploy a basic Seaside app and<br>
was thinking of using something like Swarm instead of nginx and<br>
supervisord.<br>
<br></blockquote><div><br></div><div>I did. You can see this docker-compose.xml: <a href="https://github.com/vasmalltalk/docker-examples/blob/master/source/SeasideTrafficLights/Raspberry/docker-compose.yml">https://github.com/vasmalltalk/docker-examples/blob/master/source/SeasideTrafficLights/Raspberry/docker-compose.yml</a> where I use Traefik webserver with sticky Seaside sessions. The key line is:</div><div><br></div><div><span class="gmail-pl-ent" style="box-sizing:border-box;color:rgb(34,134,58);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">traefik.backend.loadbalancer.stickiness</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">: </span><span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre"><span class="gmail-pl-pds" style="box-sizing:border-box">"</span>true<span class="gmail-pl-pds" style="box-sizing:border-box">"</span></span><br></div><div> </div><div>Best,</div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font color="#666666">Mariano Martinez Peck</font></div><div><div dir="ltr"><div dir="ltr"><font color="#666666">Email: <a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a></font></div><div dir="ltr"><font color="#666666">Twitter: @MartinezPeck</font></div><div dir="ltr"><font color="#666666">LinkedIn: <a href="https://www.linkedin.com/in/mariano-mart%C3%ADnez-peck/" target="_blank">www.linkedin.com/in/mariano-martinez-peck</a></font></div><div dir="ltr"><div dir="ltr"><font color="#666666">Blog: <a href="https://marianopeck.wordpress.com/" target="_blank">https://marianopeck.wordpress.com/</a></font></div></div></div></div></div></div></div></div></div></div></div></div>