I am just trying to setup a local developing environment. The applications are just there so I can get better with labels and routing. When I run docker-compose up I get a 404 not found on localhost and a bad gateway on the dashboard at web.localhost. Influx gives me no problems. All I am trying to accomplish with this setup is to have website on the main domain with a dashboard and another sub domain running another application.
404 means cannot match your rule, 502 means that rule is matched but cannot connect to the backend. Your 502 is not surprising since you need to have something to reply on 8080 and you don’t. It does not seem that you have a rule for “localhost”, so 404 is also expected.
If you change command: --docker to command: ["--api","--docker"] you should be able to see the dashboard. If you correct your spelling mistake, and write frontend with t, you also should be able to browse to http://web.localhost/static/ and get 404 form nginx.
This worked. I appreciate it. Now I have nginx a localhost and the dashboard at web.localhost.
I attached the toml in the volumes but basic authentication is not working?
Hey @ldez thanks for pointing me in the right direction. The solution was so simple because I was trying to use both CLI and toml at the same time. That is why I was getting the error message.
I had to remove the CLI --api argument so the toml would work correctly.