You can run Postgres and PGAdmin with a single docker-compose command
docker-compose -f ~/path-to-your-directory/docker-compose.yml up --build -d;
Contents of the docker-compose.yml file as follows:
With this file you can pass environment variables or YML file will pick the defaults for you.
version: '3.5'
services:
...
more →