This commit is contained in:
Florian Schüller 2016-12-22 15:45:26 +01:00
parent c6a8fd3f81
commit ac4b894f2c
2 changed files with 19 additions and 0 deletions

View File

@ -28,6 +28,22 @@ If you start the container and you already have a database but you want more dat
docker exec geneweb /start_setup.sh
```
and then navigate to [http://localhost:2316](http://localhost:2316)
## Options
If you need to change the IP of the Docker host or better, of the PC you want to use the [setup](http://localhost:2316) from
you can override the default value by _adding_ the option
```
--env HOST_IP=192.168.0.1
```
to the `docker run` mentioned above.
e.g.
```
docker run --env HOST_IP=192.168.0.1 --env LANGUAGE=de -d --name geneweb -p2316:2316 -p2317:2317 -v ${HOME}/GenealogyData:/genewebData schuellerf/geneweb:latest
```
## Shutdown
To shutdown the container just run

View File

@ -1,5 +1,8 @@
#!/usr/bin/env bash
pushd ${GENEWEBDB}
if [ -n "${HOST_IP}" ]; then
echo "${HOST_IP}" > /setup_ips.txt
fi
gwsetup -p${SETUP_PORT} -gd${GENEWEBSHARE} -lang${LANGUAGE} -log${SETUP_LOGFILE} -only/setup_ips.txt
popd