Preparing the environment with Docker To run it, create a docker-compose file: docker-compose.yml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 version : "3" services : postgres : container_name : postgres image : postgres :latest ports : - "5432:5432" volumes : - /data/ postgres :/data/postgres env_file : - docker.
env networks : - postgres pgadmin : links : - postgres :postgres container_name : pgadmin image : dpage/pgadmin4 ports : - "8080:80" volumes : - /data/ pgadmin :/root/.pgadmin env_file : - docker.