ConnectionRefusedError: [Errno 111] Connection refused. Docker, Python
I made a fastapi, alembic, postgres, sqlalchemy application, made a docker image, run http://127.0.0.1:8000/docs and try to create a user, but when sending a request I get the error ConnectionRefusedError: [Errno 111] Connection refused
ConnectionRefusedError: [Errno 111] Connection refused docker
I made a fastapi, alembic, postgres, sqlalchemy application, made a docker image, run http://127.0.0.1:8000/docs and try to create a user, but when sending a request I get the error ConnectionRefusedError: [Errno 111] Connection refused
Can’t perform alembic migration from container
I can’t migrate to database from container
I write docker exec -it my_container_app bash
Writing
alembic revision –autogenerate -m “comment”
I get the following error