Linking Django and Postgresql with Docker
问题 I have two Docker containers. The first one is Postgresql container, which I run using the following command. sudo docker run -v /home/mpmsp/project/ezdict/postgresql/data:/var/lib/postgresql/data -p 127.0.0.1:5432:5432 -name my-postgres -d postgres It is based on official image and it is working perfectly, I can connect to Postgresql from the host. The second container is a container with my Django application. The image is built using the following Dockerfile (based on this image): FROM