I am running my python Flask project inside of the docker container and all the requests work fine, when I turn on the aws vpn client in order to connect to an external service I get an error:
urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
I get this error while making the /login request inside of my application.
Here is the docker compose service (Dockerfile is also super basic):
services:
api:
image: app
build:
context: .
dockerfile: docker/Dockerfile.local
env_file: ./docker/.env
environment:
<<: *environment-vars
ports:
- "8888:3000"
command: bash -c "migrate && python wsgi.py"
Please help me to figure out what is wrong. I tried to reinstall the whole docker-machine and restarted everything nothing helped.