A few ideas what might be wrong (my guess is No. 3):
Is http://app:8000 the correct server address? It should be if you use the standard docker compose setup.
Are both containers in the same docker network?
Have you configured DNS servers for your docker daemon? I always had these „Temporary failure in name resolution“ in my docker containers when the daemon did not have dns servers configured. See for example here: Fix Docker's networking DNS config
There is no mayan app container. I think this because of the big changes in the mayan docker-compose.yml that have happened recently. Where it’s using inheritance. I think the container name to use now would be
frontend
Here’s a list of all my Mayan containers.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
110eab445cb6 mayanedms/mayanedms:s4.5 "/usr/local/bin/entr…" 23 hours ago Up 23 hours 8000/tcp mayan-worker_e-1
ff0ac3d0c8cb mayanedms/mayanedms:s4.5 "/usr/local/bin/entr…" 23 hours ago Up 23 hours 8000/tcp mayan-worker_c-1
c51835acde46 mayanedms/mayanedms:s4.5 "/usr/local/bin/entr…" 23 hours ago Up 23 hours 8000/tcp mayan-frontend-1
b6e8c9684380 mayanedms/mayanedms:s4.5 "/usr/local/bin/entr…" 23 hours ago Up 23 hours 8000/tcp mayan-worker_d-1
a961f172faa5 mayanedms/mayanedms:s4.5 "/usr/local/bin/entr…" 23 hours ago Up 23 hours 8000/tcp mayan-worker_b-1
e10f788a9d1a mayanedms/mayanedms:s4.5 "/usr/local/bin/entr…" 23 hours ago Up 23 hours 8000/tcp mayan-worker_a-1
568b6dec7e99 mayanedms/mayanedms:s4.5 "/usr/local/bin/entr…" 23 hours ago Up 23 hours 8000/tcp mayan-celery_beat-1
ea88cd42c93c redis:7.0.10-alpine "docker-entrypoint.s…" 23 hours ago Up 23 hours mayan-redis-1
1238fb1cc435 rabbitmq:3.11.13-management-alpine "docker-entrypoint.s…" 23 hours ago Up 23 hours mayan-rabbitmq-1
172fff33b355 drrsatzteil/mayan-mindee-web:latest "/entrypoint.sh web" 23 hours ago Up 23 hours mayan-mayan-mindee-web-1
33742aa3df30 elasticsearch:7.17.9 "/bin/tini -- /usr/l…" 23 hours ago Up 23 hours mayan-elasticsearch-1
48e8a0bc3fce drrsatzteil/mayan-mindee-worker:latest "/entrypoint.sh rq" 23 hours ago Up 23 hours mayan-mayan-mindee-worker-1
12e3da0caa92 postgres:13.10-alpine "docker-entrypoint.s…" 23 hours ago Up 23 hours mayan-postgresql-1
No you need to edit your docker-compose file: change the MAYAN_URL environment variable for the mindee worker container. Don’t forget to recreate the container afterwards.
I think I might have led you on a wrong track here when I gave you the advice to mount the changed service.py file. I realised that I install the package without the -e flash when I’m building the container. Could you please try the following just to validate that I’m on the right track here. Please exec in your web container with your changed file mounted:
python -m pip install /app
If you can use your endpoint after that we can think about a more permanent solution.
It should not really matter but you might as well disable it. Make sure that you use the charged url to trigger (you might want to try to use curl first)
Edit: hmm, the latest built was apparently too long ago… let me check…