I'm having issues accessing my postgres db from my remote machine. I'm running docker-compose (django and postgres) from a digitalOcean droplet, so I need to be able to access the db from my mac.
I thought the below would work based on the outline of environment usage in docker-compose. Any help would be appreciated.
db:
image: postgres
ports:
- "5555:5555"
environment:
- POSTGRES_PASSWORD=mysecretpassword
- POSTGRES_USER=postgres
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "8000:8000"
links:
- db
I'm trying to access the postgres db from pgadmin3 on port 5555, user:postgres, pass:mysecretpassword.
POSTGRES_PASSWORD
is being ignored. – jap1968 Sep 30 '16 at 12:15