$ docker --version): Docker version 1.12.6, build 78d1802$ git rev-parse HEAD): 01c358b6bc76333f4960a7da582d3bdbc33b9155Docker installs latest Postgres version
Being able to speficy Postgres version in .env file
docker-compose up -d postgres
FROM postgres:latest
docker tag postgres:10 postgres
Inside postgres/Dockerfile change
FROM postgres:alpine
to
FROM postgres:<version> e.g. FROM postgres:9.6
& run
docker-compose up -d --build postgres
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
Inside
postgres/DockerfilechangeFROM postgres:alpineto
FROM postgres:<version>e.g.FROM postgres:9.6& run
docker-compose up -d --build postgres