I use 2 containers to accomplish this:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;jwilder&#x2F;nginx-proxy" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jwilder&#x2F;nginx-proxy</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;JrCs&#x2F;docker-letsencrypt-nginx-proxy-companion" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;JrCs&#x2F;docker-letsencrypt-nginx-proxy-compa...</a><p>Since both are long running processes, it makes sense to keep them in separate containers.