In one folder I have 3 files: base.py, Dockerfile and docker-compose.yml.
base.py:
import psycopg2 conn = psycopg2.connect(\"dbname=\'b
Another possible scenario,
Check if ports have been used or not by other docker container. Use command:
$ docker container ls --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}" -a
Then change your ports/expose in docker-compose file