When running the process Products Data Entry (Jasper)
in a Manufacturing Order:
Internal Server Error ...
pops upreports
container show error containing reports_1 | Caused by: java.net.UnknownHostException: app
Port-Bind the app-container’s api in your docker-compose.yml, e.g.:
app:
...
ports:
- "8282:8282"
API_URL
in your database to the server and port which shall be reachable by your clients:
docker exec -u postgres metasfreshdocker_db_1 psql -d metasfresh -c "UPDATE ad_sysconfig SET value = 'http://my.metasfreshserver.com:8282/api' WHERE name = 'API_URL';"
docker-compose down && docker-compose up -d
8282/TCP
is reachable from your clients, e.g.:
nc -vz my.metasfreshserver.com 8282
my.metasfreshserver.com [AAA.BBB.CCC.DDD] 8282 open
In order to print labels, the reports
container needs to send requests to the app
internal API.
Since docker-compose v1 does not allow looping links, the app
API needs to be exposed externally for the reports
container to reach it.