Fixes #1
This commit is contained in:
parent
c6a8fd3f81
commit
ac4b894f2c
16
README.md
16
README.md
@ -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
|
docker exec geneweb /start_setup.sh
|
||||||
```
|
```
|
||||||
and then navigate to [http://localhost:2316](http://localhost:2316)
|
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
|
## Shutdown
|
||||||
|
|
||||||
To shutdown the container just run
|
To shutdown the container just run
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
pushd ${GENEWEBDB}
|
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
|
gwsetup -p${SETUP_PORT} -gd${GENEWEBSHARE} -lang${LANGUAGE} -log${SETUP_LOGFILE} -only/setup_ips.txt
|
||||||
popd
|
popd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user