diff --git a/README.md b/README.md index 9386598..5fb7f39 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,17 @@ $ docker run --name some-pgrouting \ -d starefossen/pgrouting ``` +If you want to start this same basic container, but be able to connect to it externally, start it as follows: + +```bash +$ docker run --name some-pgrouting \ + -e POSTGRES_PASSWORD=mysecretpassword \ + -p 5433:5432 + -d starefossen/pgrouting +``` + +The container will then be reachable at port 5433 from your local system. + For more detailed instructions about how to start and control your Postgres container, see the documentation for the `postgres` image [here](https://registry.hub.docker.com/_/postgres/).