@@ -28,7 +28,10 @@ In this example below I'm going to use `5000` as port, and output log file under
2828 ```
2929
3030 ```
31- docker run -it -d -p 5000:8080 -v bin/volume:/workspace --name gsx2jsonpp-latest deflinhec/gsx2jsonpp
31+ docker run -it -d --expose 5000 \
32+ -v ${PWD}/bin/volume:/workspace \
33+ -e ARGUMENTS="--host 0.0.0.0 --port 5000" \
34+ --name gsx2jsonpp-latest deflinhec/gsx2jsonpp
3235 ```
3336
3437- Launch with a local image
@@ -40,9 +43,28 @@ In this example below I'm going to use `5000` as port, and output log file under
4043 ```
4144
4245 ```
43- docker run -it -d -p 5000:8080 -v bin/volume:/workspace --name gsx2jsonpp gsx2jsonpp
46+ docker run -it -d --expose 5000 \
47+ -v ${PWD}/bin/volume:/workspace \
48+ -e ARGUMENTS="--host 0.0.0.0 --port 5000" \
49+ --name gsx2jsonpp gsx2jsonpp
4450 ```
4551
52+ Avaliable arguments:
53+ - -p, --port
54+ - --host
55+
56+ - --cache (file|memory)
57+
58+ Cache mode is disabled by default, this feature allows client
59+ to query on specific data version. When cache is configure with
60+ file mode, cache file will be preserve under 'cache/' folder.
61+
62+ - --ssl (true|false)
63+
64+ SSL mode is disabled by default, if you prefer using SSL mode
65+ with your certification and private key. Copy your files into
66+ `${PWD}/bin/volume` and rename as `cert.pem, key.pem`.
67+
4668After launched, Gsx2Jsonpp should be accessable in your browser [localhost:5000](http://localhost:5000/hi).
4769
4870Supervisor have been setup within the container to guarantee an auto restart after accidentially crashed(hopefully not).
@@ -222,3 +244,5 @@ There are four sections to the returned data.
222244
223245- :white_check_mark: md5 checksum
224246
247+ - :white_check_mark: cache
248+
0 commit comments