Docker will create a directory called 'pgdata' to store Postgres data. This is how data will not be wiped out every time the container restarts.
### cwd to directory of docker-compose.yml
# Run all containers in a compose file
docker-compose up -d
## -d means detach, it will run containers and detach from stdout
# Run a container
docker-compose up <name>
# Stop a container
docker-compose stop <name>
# Stop and remove a container
docker-compose down <name>
# Stop and remove all container
docker-compose down
Can be accessable at http://localhost:8080