Mercurial > gemma
changeset 712:86725b39b2d2
Improve reproducability of documented docker commands
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 21 Sep 2018 12:53:09 +0200 |
parents | ed2dd10a94b5 |
children | badbc0207418 |
files | docker/README.md |
diffstat | 1 files changed, 9 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/docker/README.md Fri Sep 21 12:50:44 2018 +0200 +++ b/docker/README.md Fri Sep 21 12:53:09 2018 +0200 @@ -6,6 +6,13 @@ Other example commands, too, assume they are run from the root of your checkout. +## Network setup + +- Create a network to connect containers: + ``` + docker network create gemma + ``` + ## Database setup - Build Dockerfile with e.g.: @@ -16,8 +23,9 @@ - Get a running instance with e.g.: ``` docker run --name gemma_db -d -p 54321:5432 -v $PWD/schema:/opt/gemma \ - gemma_db + --network gemma gemma_db ``` + Use `--network-alias gemma_db` if your container has a different name - Run tests for RLS policies: ``` @@ -39,19 +47,6 @@ Omit the `-s` option to get a diagram with all tables or use any other schema name to see other parts of the whole picture. -## Network setup - -- Create a network to connect containers: - ``` - docker network create gemma - ``` - -- Connect database to new network - ``` - docker network connect gemma gemma_db - ``` - Use `--alias gemma_db` if your container has a different name - ## GeoServer setup - Build Dockerfile with e.g.: