ReinerNippes / nextcloud_on_docker

Run Nextcloud in Docker Container on various Linux Hosts
MIT License
203 stars 48 forks source link

Nginx and Traefik are deployed by default? #31

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hi,

Maybe I don't understand it correctly, but it looks like Traefik and Nginx are both deployed in the default configuration.

Here contains the include_tasks for Traefik and then here in the groups_vars the image is set to fpm-alpine and the when statement checks if fpm is present which it always will be (unless changed)

This confuses me because I thought Traefik and Nginx are both reverse proxies. So why are they both deployed if they perform the same task?

Thanks.

ReinerNippes commented 4 years ago

nginx is both: web server and reverse proxy. but needs a side kick to get letsencrypt certificates. traefik is a reverse proxy that handles automatically letsencrypt certificates. but it can't handle static html/css content.

ghost commented 4 years ago

I see that makes sense now. What if I just supply nextcloud as the nextcloud docker image? Doesn't this image come with the apache web server? Does the playbook account for this?

EDIT: Nevermind, course it does. As it doesn't deploy Nginx then.. 😄