linuxserver / docker-mods

Documentation and Examples of base container modifications
GNU General Public License v3.0
1.08k stars 281 forks source link

[BUG] Dashboard Docker Mod Not Showing Proxies #722

Closed Gex2501 closed 1 year ago

Gex2501 commented 1 year ago

Is there an existing issue for this?

Current Behavior

The dashboard mod does not show any applications under proxies.

Expected Behavior

Proxied apps should be listed. (note I am using the auto-proxy mod)

Steps To Reproduce

  1. Install and configure swag with a custom docker network, enable the docker mods and use dashboard and auto-proxy
  2. Install another docker app to the same custom network, configure it for auto-proxy as a subdomain
  3. Verify the app is reachable yet not in the dashboard.

Environment

- OS: Unraid 6.12.0
- How docker service was installed: It's part of the OS

CPU architecture

x86-64

Docker creation

docker run
  -d
  --name='swag'
  --net='proxynet'
  -e TZ="America/Los_Angeles"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="REDACTED"
  -e HOST_CONTAINERNAME="swag"
  -e 'URL'='REDACTED'
  -e 'VALIDATION'='dns'
  -e 'SUBDOMAINS'='wildcard'
  -e 'CERTPROVIDER'=''
  -e 'DNSPLUGIN'='cloudflare'
  -e 'PROPAGATION'='30'
  -e 'EMAIL'='REDACTED'
  -e 'ONLY_SUBDOMAINS'='false'
  -e 'EXTRA_DOMAINS'=''
  -e 'STAGING'='false'
  -e 'DOCKER_MODS'='linuxserver/mods:universal-docker|linuxserver/mods:swag-cloudflare-real-ip|linuxserver/mods:swag-auto-reload|linuxserver/mods:swag-auto-proxy|linuxserver/mods:swag-dbip|linuxserver/mods:swag-dashboard'
  -e 'WATCHLIST'='/config/nginx/custom.conf'
  -e 'DOCKER_HOST'='dockersocket'
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'UMASK'='022'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:81]/'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver-ls-logo.png'
  -p '4433:443/tcp'
  -p '8888:80/tcp'
  -p '81:81/tcp'
  -v '/mnt/cache/appdata/swag':'/config':'rw'
  --cap-add=NET_ADMIN 'lscr.io/linuxserver/swag'

Container logs

[mod-init] Attempting to run Docker Modification Logic
[mod-init] Adding linuxserver/mods:universal-docker to container
[mod-init] Downloading linuxserver/mods:universal-docker from lscr.io
[mod-init] Installing linuxserver/mods:universal-docker
[mod-init] linuxserver/mods:universal-docker applied to container
[mod-init] Adding linuxserver/mods:swag-cloudflare-real-ip to container
[mod-init] Downloading linuxserver/mods:swag-cloudflare-real-ip from lscr.io
[mod-init] Installing linuxserver/mods:swag-cloudflare-real-ip
[mod-init] linuxserver/mods:swag-cloudflare-real-ip applied to container
[mod-init] Adding linuxserver/mods:swag-auto-reload to container
[mod-init] Downloading linuxserver/mods:swag-auto-reload from lscr.io
[mod-init] Installing linuxserver/mods:swag-auto-reload
[mod-init] linuxserver/mods:swag-auto-reload applied to container
[mod-init] Adding linuxserver/mods:swag-auto-proxy to container
[mod-init] Downloading linuxserver/mods:swag-auto-proxy from lscr.io
[mod-init] Installing linuxserver/mods:swag-auto-proxy
[mod-init] linuxserver/mods:swag-auto-proxy applied to container
[mod-init] Adding linuxserver/mods:swag-dbip to container
[mod-init] Downloading linuxserver/mods:swag-dbip from lscr.io
[mod-init] Installing linuxserver/mods:swag-dbip
[mod-init] linuxserver/mods:swag-dbip applied to container
[mod-init] Adding linuxserver/mods:swag-dashboard to container
[mod-init] Downloading linuxserver/mods:swag-dashboard from lscr.io
[mod-init] Installing linuxserver/mods:swag-dashboard
[mod-init] linuxserver/mods:swag-dashboard applied to container
[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] done
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗ 
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝ 

   Brought to you by linuxserver.io
───────────────────────────────────────

To support the app dev(s) visit:
Certbot: https://supporters.eff.org/donate/support-work-on-certbot

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    99
User GID:    100
───────────────────────────────────────

using keys found in /config/keys
Variables set:
PUID=99
PGID=100
TZ=America/Los_Angeles
URL=aorus.dev
SUBDOMAINS=wildcard
EXTRA_DOMAINS=
ONLY_SUBDOMAINS=false
VALIDATION=dns
CERTPROVIDER=
DNSPLUGIN=cloudflare
EMAIL=REDACTED
STAGING=false

Using Let's Encrypt as the cert provider
SUBDOMAINS entered, processing
Wildcard cert for REDACTED will be requested
E-mail address entered: REDACTED
dns validation via cloudflare plugin is selected
Certificate exists; parameters unchanged; starting nginx
The cert does not expire within the next day. Letting the cron script handle the renewal attempts overnight (2:08am).
**** The following active confs have different version dates than the samples that are shipped. ****
**** This may be due to user customization or an update to the samples. ****
**** You should compare the following files to the samples in the same folder and update them. ****
**** Use the link at the top of the file to view the changelog. ****
┌────────────┬────────────┬────────────────────────────────────────────────────────────────────────┐
│  old date  │  new date  │ path                                                                   │
├────────────┼────────────┼────────────────────────────────────────────────────────────────────────┤
│ 2023-04-13 │ 2023-06-05 │ /config/nginx/site-confs/default.conf                                  │
│ 2023-04-13 │ 2023-04-27 │ /config/nginx/authentik-location.conf                                  │
│ 2023-04-13 │ 2023-04-27 │ /config/nginx/authelia-location.conf                                   │
│ 2023-02-09 │ 2023-04-27 │ /config/nginx/authelia-server.conf                                     │
│ 2023-02-09 │ 2023-04-27 │ /config/nginx/authentik-server.conf                                    │
└────────────┴────────────┴────────────────────────────────────────────────────────────────────────┘
**** installing docker and docker compose ****
Copying over docker and docker-compose binaries
**** Applying the SWAG dashboard mod... ****
Applying the dbip mod...
Applied the dbip mod
**** Remote docker service dockersocket will be used ****
**** Adding swag-auto-reload deps to package install list ****
**** Adding goaccess to package install list ****
**** libmaxminddb already installed, skipping ****
**** Applied the SWAG dashboard mod ****
[mod-init] **** Installing all mod packages ****
fetch http://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
**** No preset proxy conf found for ddns-updater, generating from scratch ****
**** Setting upstream address ddns-updater for ddns-updater ****
**** Setting port 8000 for ddns-updater ****
**** Setting proto http for ddns-updater ****
**** Setting url ddns.* for ddns-updater ****
**** Enabling Authelia for ddns-updater ****
fetch http://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
**** No preset proxy conf found for binhex-plex, generating from scratch ****
**** Setting upstream address 10.0.1.101 for binhex-plex ****
**** Setting port 32400 for binhex-plex ****
**** Setting proto http for binhex-plex ****
**** Setting url plex.* for binhex-plex ****
**** Enabling Authelia for binhex-plex ****
(1/3) Installing goaccess (1.7.2-r1)
**** Using preset proxy conf for adminer ****
**** Enabling Authelia for adminer ****
**** No preset proxy conf found for binhex-prowlarr, generating from scratch ****
**** Setting upstream address binhex-prowlarr for binhex-prowlarr ****
(2/3) Installing inotify-tools-libs (3.22.6.0-r2)
**** Setting port 9696 for binhex-prowlarr ****
**** Setting proto http for binhex-prowlarr ****
**** Setting url prowlarr.* for binhex-prowlarr ****
**** Enabling Authelia for binhex-prowlarr ****
(3/3) Installing inotify-tools (3.22.6.0-r2)
Executing busybox-1.36.1-r0.trigger
OK: 198 MiB in 212 packages
**** No preset proxy conf found for webhookd, generating from scratch ****
**** Setting upstream address webhookd for webhookd ****
**** Setting port 8080 for webhookd ****
**** Setting proto http for webhookd ****
**** Setting url webhook.* for webhookd ****
**** Enabling Authelia for webhookd ****
**** No preset proxy conf found for binhex-radarr, generating from scratch ****
**** Setting upstream address binhex-radarr for binhex-radarr ****
**** Setting port 7878 for binhex-radarr ****
**** Setting proto http for binhex-radarr ****
**** Setting url radarr.* for binhex-radarr ****
**** Enabling Authelia for binhex-radarr ****
**** No preset proxy conf found for binhex-delugevpn, generating from scratch ****
**** Setting upstream address binhex-delugevpn for binhex-delugevpn ****
**** Setting port 8112 for binhex-delugevpn ****
**** Setting proto http for binhex-delugevpn ****
**** Setting url deluge.* for binhex-delugevpn ****
**** Enabling Authelia for binhex-delugevpn ****
**** Using preset proxy conf for tautulli ****
**** Overriding url as tautulli.* for tautulli ****
**** Enabling Authelia for tautulli ****
**** Using preset proxy conf for authelia ****
**** Overriding url as auth.* for authelia ****
**** Enabling Authelia for authelia ****
**** No preset proxy conf found for binhex-overseerr, generating from scratch ****
**** Setting upstream address binhex-overseerr for binhex-overseerr ****
**** Setting port 5055 for binhex-overseerr ****
**** Setting proto http for binhex-overseerr ****
**** Setting url overseerr.* for binhex-overseerr ****
**** Enabling Authelia for binhex-overseerr ****
**** No preset proxy conf found for UptimeKuma, generating from scratch ****
**** Setting upstream address UptimeKuma for UptimeKuma ****
**** Setting port 3001 for UptimeKuma ****
**** Setting proto http for UptimeKuma ****
**** Setting url uptime.* for UptimeKuma ****
**** Enabling Authelia for UptimeKuma ****
**** No preset proxy conf found for binhex-sonarr, generating from scratch ****
**** Setting upstream address binhex-sonarr for binhex-sonarr ****
**** Setting port 8989 for binhex-sonarr ****
**** Setting proto http for binhex-sonarr ****
**** Setting url sonarr.* for binhex-sonarr ****
**** Enabling Authelia for binhex-sonarr ****
[custom-init] No custom files found, skipping...
MOD Auto-reload: Watching the following files/folders for changes (excluding .sample and .md files):
/config/nginx
[ls.io-init] done.
Server ready
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

Roxedus commented 1 year ago

Dupe of #606, #714