Hi @xxkk
It looks like you set WEBAPI_URL
to http://localhost:8080
but on the other hand you set webui
host-bound ports to 80
and 443
.
The variable-name of WEBAPI_URL
is unfortunately somewhat misleading and although this is used to tell your browser where your API is accessible, the request itself is usually handled by the webui
container.
You need to set WEBAPI_URL
to the URL where metasfresh (webui-port) will be available from browsers - see the example docker-compose.yml
in here: https://docs.metasfresh.org/installation_collection/EN/How_do_I_setup_the_metasfresh_stack_using_Docker.html
In order to solve your issue, you have two possibilities:
- Change
WEBAPI_URL
tohttp://localhost
(assuming you want to access metasfresh via browser using http://localhost in the URL bar if your browser is running on the same machine as the metasfresh-stack
Note: on Windows you might run into permission issues when trying to run a service onlocalhost
80/TCP
OR
- Change the
port
part in yourwebui
section to use port8080
on your host and leaveWEBAPI_URL
as it is right now:
...
webui:
...
ports:
- "8080:80"
...
environment:
- WEBAPI_URL=http://localhost:8080
After that, just restart your docker-compose project. After everything has booted up (might take a few minutes, depending on your hardware) you should be able to access metasfresh using your browser:
Solution 1: http://localhost
Solution 2: http://localhost:8080