-
|
Hi all, As a precursor, I'm not a dev, and don't play one on television. I'm a retired electro-mechanic engineer wanting to stand up some tools. I've got a homelab setup comprising 2 HP Elitedesk machines with Ubuntu server and docker installed on both. The primary machine has been initialized as the primary swarm device, with the other a secondary. Portainer has been installed on the primary machine and all is well. The primary machine is set up at 192.168.10.16, with the secondary at 192.168.10.17. A cloudflare account has been setup, and my base URL is mydomain.com (not really....) Traefik has been setup as a Portainer stack. The config file looks like this: `version: "3.7" services: whoami: networks: volumes: Using the docs here, I've set up a treafik.yml file that looks like:
This works just fine with the dashboard available at traefik.mydomain.com Per the docs. my Trilium stack looks like: `version: "3.7" services: networks: Everything runs, and the service log shows this:
But, that's as far as I can get. https://trilium.mydomain.com gives a 404 error, and trying to do a 192.168.10.16:8080 just says the site can't be reached. According to Portainer trilium is on the Primary machine. I've even tried to do 192.168.10.17:8080, and it says its not secure, but then goes to a 404 error. Any light you can shine on this would be greatly appreciated. I'm pulling out what little hair I have left. chris |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 15 replies
-
|
Sorry for the formatting. |
Beta Was this translation helpful? Give feedback.
-
|
Ok. All done. Same result. What does this mean? http://[your-server-host]:8080 Thanks |
Beta Was this translation helpful? Give feedback.
-
|
Ok, Fewer hairs left.... Logs all look ok: Traefik: docker service logs -f traefik_traefik Trilium: docker service logs -f trilium_trilium But still no connection: Would someone please review my yml files? Traefik tls.yml: Trilium: Thank you. |
Beta Was this translation helpful? Give feedback.
-
|
Ok. Everything updated per comments. I was using Portainer, and decided to do straight docker stack commands. From the primary (192.168.10.16), docker network ls docker service ps trilium_trilium (This indicates Trilium is running on 192.168.10.17) docker service inspect trilium_trilium curl http://192.168.10.17:8080 and from the secondary (192.168.10.17): curl http://192.168.10.16:8080 Thank you |
Beta Was this translation helpful? Give feedback.
-
|
My head hurts. I created an attachable overlay external network: traefik_proxy. I referenced it in traefik stack: services: API & DashboardDeploy the Whoami applicationwhoami: Define the overlay network for Swarmnetworks: I've got a tls file that defines the endpoints: tls: entryPoints: Fired it up, this works fine. No errors in the logs. Set the network the same in the Trilium stack: services: networks: Fires up fine, There is now one network, traefik_proxy NETWORK ID NAME DRIVER SCOPE I can access Trilium from http:192.168.10.17:8080, but not from trilium.mydomain.com. There is no reference to Trilium in Traefik. Looking in Portainer both Traefik and Trilium are using traefik_proxy which is at 10.0.0.0/24 locally Save me.... |
Beta Was this translation helpful? Give feedback.
-
|
Ok I give up. Trilium (and Mealie) refuse to work in Docker Swarm mode. |
Beta Was this translation helpful? Give feedback.
Ok I give up.
Trilium (and Mealie) refuse to work in Docker Swarm mode.