-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a Docker Compose example using a reverse proxy #1010
Comments
As a first draft, here's a working example using The shaarli container must be launched with
The default proxy configuration of
I hope there's no side-effect for other proxified container, because this is a proxy-wide configuration. I haven't managed to change the proxy configuration for the shaarli container only. |
Thanks! The Nginx setup for Shaarli images was designed to be self-sufficient, so a bit of rework is needed to ease serving Shaarli containers behind a reverse proxy. I'm considering providing separate images depending on the end-user's setup:
You should be able to define container/service-specific configuration under I'd rather avoid adding too much logic to manage HTTP headers, and instead focus on providing sane and well-documented server configuration examples :) Nginx's support for the HTTP Proxy protocol is also something worth leveraging. |
Closes shaarli#1010 TODO: - deploy on a VPS with an actual domain - write a supporting deployment guide / article See: - https://hub.docker.com/r/jwilder/nginx-proxy/ - https://hub.docker.com/r/jrcs/letsencrypt-nginx-proxy-companion/ - https://docs.docker.com/compose/environment-variables/ Signed-off-by: VirtualTam <[email protected]>
Closes shaarli#1010 TODO: - deploy on a VPS with an actual domain - write a supporting deployment guide / article See: - https://hub.docker.com/r/jwilder/nginx-proxy/ - https://hub.docker.com/r/jrcs/letsencrypt-nginx-proxy-companion/ - https://docs.docker.com/compose/environment-variables/ Signed-off-by: VirtualTam <[email protected]>
Closes shaarli#1010 TODO: - deploy on a VPS with an actual domain - write a supporting deployment guide / article See: - https://hub.docker.com/r/jwilder/nginx-proxy/ - https://hub.docker.com/r/jrcs/letsencrypt-nginx-proxy-companion/ - https://docs.docker.com/compose/environment-variables/ Signed-off-by: VirtualTam <[email protected]>
Closes shaarli#1010 TODO: - deploy on a VPS with an actual domain - write a supporting deployment guide / article See: - https://hub.docker.com/r/jwilder/nginx-proxy/ - https://hub.docker.com/r/jrcs/letsencrypt-nginx-proxy-companion/ - https://docs.docker.com/compose/environment-variables/ Signed-off-by: VirtualTam <[email protected]>
Closes shaarli#1010 TODO: - deploy on a VPS with an actual domain - write a supporting deployment guide / article See: - https://hub.docker.com/r/jwilder/nginx-proxy/ - https://hub.docker.com/r/jrcs/letsencrypt-nginx-proxy-companion/ - https://docs.docker.com/compose/environment-variables/ Signed-off-by: VirtualTam <[email protected]>
Closes shaarli#1010 TODO: - deploy on a VPS with an actual domain - write a supporting deployment guide / article See: - https://hub.docker.com/r/jwilder/nginx-proxy/ - https://hub.docker.com/r/jrcs/letsencrypt-nginx-proxy-companion/ - https://docs.docker.com/compose/environment-variables/ Signed-off-by: VirtualTam <[email protected]>
Closes shaarli#1010 TODO: - deploy on a VPS with an actual domain - write a supporting deployment guide / article See: - https://hub.docker.com/r/jwilder/nginx-proxy/ - https://hub.docker.com/r/jrcs/letsencrypt-nginx-proxy-companion/ - https://docs.docker.com/compose/environment-variables/ Signed-off-by: VirtualTam <[email protected]>
Closes shaarli#1010 TODO: - deploy on a VPS with an actual domain - write a supporting deployment guide / article See: - https://hub.docker.com/r/jwilder/nginx-proxy/ - https://hub.docker.com/r/jrcs/letsencrypt-nginx-proxy-companion/ - https://docs.docker.com/compose/environment-variables/ Signed-off-by: VirtualTam <[email protected]>
Closes shaarli#1010 TODO: - deploy on a VPS with an actual domain - write a supporting deployment guide / article See: - https://hub.docker.com/_/traefik/ - https://docs.traefik.io/configuration/backends/docker/ - https://docs.traefik.io/user-guide/docker-and-lets-encrypt/ - traefik/traefik#2798 - traefik/traefik#3298 Signed-off-by: VirtualTam <[email protected]>
Closes shaarli#1010 TODO: - deploy on a VPS with an actual domain - write a supporting deployment guide / article See: - https://hub.docker.com/_/traefik/ - https://docs.traefik.io/configuration/backends/docker/ - https://docs.traefik.io/user-guide/docker-and-lets-encrypt/ - traefik/traefik#2798 - traefik/traefik#3298 Signed-off-by: VirtualTam <[email protected]>
Closes shaarli#1010 See: - https://hub.docker.com/_/traefik/ - https://docs.traefik.io/configuration/backends/docker/ - https://docs.traefik.io/user-guide/docker-and-lets-encrypt/ - traefik/traefik#2798 - traefik/traefik#3298 Signed-off-by: VirtualTam <[email protected]>
Closes shaarli#1010 See: - https://hub.docker.com/_/traefik/ - https://docs.traefik.io/configuration/backends/docker/ - https://docs.traefik.io/user-guide/docker-and-lets-encrypt/ - traefik/traefik#2798 - traefik/traefik#3298 Signed-off-by: VirtualTam <[email protected]>
Closes shaarli#1010 See: - https://hub.docker.com/_/traefik/ - https://docs.traefik.io/configuration/backends/docker/ - https://docs.traefik.io/user-guide/docker-and-lets-encrypt/ - traefik/traefik#2798 - traefik/traefik#3298 Signed-off-by: VirtualTam <[email protected]>
Closes shaarli#1010 See: - https://hub.docker.com/_/traefik/ - https://docs.traefik.io/configuration/backends/docker/ - https://docs.traefik.io/user-guide/docker-and-lets-encrypt/ - traefik/traefik#2798 - traefik/traefik#3298 Signed-off-by: VirtualTam <[email protected]>
Closes shaarli#1010 See: - https://hub.docker.com/_/traefik/ - https://docs.traefik.io/configuration/backends/docker/ - https://docs.traefik.io/user-guide/docker-and-lets-encrypt/ - traefik/traefik#2798 - traefik/traefik#3298 Signed-off-by: VirtualTam <[email protected]>
Depends on #1153
Goals:
Suggested environment example:
shaarli/shaarli:latest
image with a volume for user datajwilder/nginx-proxy
reverse proxy with Docker service discoveryJrCs/nginx-proxy-companion
for Let's Encrypt SSL supportThe text was updated successfully, but these errors were encountered: