Example Compose Stack that includes the Web UI? #1291
-
Can anyone tell me what's wrong with this stack? All I get is a white page when trying to visit the web ui:
It's connecting and filling the db, so the db connection isn't the issue. TIA |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
The first thing I would suggest is that you don't use the If that doesn't help, open the browser console and check the output. Finally, you can also check the web client container logs. |
Beta Was this translation helpful? Give feedback.
-
@acelaya ty. Ok, ill take a look and report back my result. Side note, any chance of making a single image that includes both the back end and the web ui, so we don't have to 'stack' them, and just run 1 container? (I try to live by the "KISS" mantra ("Keep It Simple, Stupid")). lol |
Beta Was this translation helpful? Give feedback.
-
I'm running into another issue now :/ Shlink container runs fine, and populates the MySQL db when it starts. Verified by dropping all tables in it and restarting the container. Several times. Log:
Shlink web UI container also seems to run fine, and I can load the page. Log:
I can ping both the MySQL and web client containers from the shlink container:
I can ping the shlink and MySQL containers from the web ui container:
But when in the web ui it says "visits: NaN" and "orphan visits: shlink 2.6 is needed" (I have Stable 2.10 which I'm assuming is .4 versions backward compatible), and at the bottom it says "Server: - Client: v3.4.2" (no server version). So it's like it's not connecting to the db somewhere. When I say "it", I don't know whether it's shlink or the webui container, since shlink seems to connect and populate, and the web ui seems to make zero connections to the db? (I'm assuming the web ui doesn't connect to the db since it requires reading the server info from a .json file and not the db? No idea how to precede from here |
Beta Was this translation helpful? Give feedback.
-
Yeelllllllo? |
Beta Was this translation helpful? Give feedback.
The first thing I would suggest is that you don't use the
latest
tags. Those are considered unstable. Try with a specific version. https://shlink.io/documentation/install-docker-image/#versionsIf that doesn't help, open the browser console and check the output.
Finally, you can also check the web client container logs.