Multiple apps behind Nginx

My confusion is, that if most dockers come with Nginx, isn’t there conflicts?

I’m new, but I’m using your pretty awesome letsencrypt docker and want to keep using it. I want your letsencrypt in front of any application that will use 443, and 80. I’m not sure if 22 is involved with letsencrypt typically, but I do need ssh.


letsencrypt (comes with Nginx)
–> gitea (comes with Nginx)
–> syncthing (comes with Nginx)
–> etc…

I’ve read that I can use named networks in docker instead of the default bridge, but if they all share the same ports I’m thinking each app should NOT have a sshd or nginx so I should remove/disable them and use redirects through letsencrypt’s nginx/php… I think :-/. So, a “webserver” network that forwards to a “application” network (or forwards to individual ones like “gitea”, “syncthing”, etc.). But if there is only 1 sshd, where should I put it?

I’m sorry, I’m just new to this and the general container approach :-(.

Read this

Thanks, that cleared many things up! Very helpful!

I noticed one of the examples is missing a backslash…

docker create \
  --name=nextcloud \
  --net=lsio <-------------****** missing '\'
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Europe/London \
  -v /home/aptalca/appdata/nextcloud/config:/config \
  -v /home/aptalca/appdata/nextcloud/data:/data \
  --restart unless-stopped \

I do have 2 ?'s though in regards to linuxserver/letsencrypt

  1. where should robots.txt go? Is “www” the root for all such things?
  2. where should I enable .htpasswd site wide? I put it in ./config/nginx/site-confs/default: server { location / { … hope that is fine… it’s working.