@@ -38,42 +38,41 @@ docker run -d --name gocron2-node \
3838> Multiple nodes with certs
3939
4040``` bash
41- # Create certs for main node
41+ # Create certs for main node (we mount conf/ to out/, because certs will output to out/)
4242docker run --rm \
43- -v /path/to/out :/gocron2/out \
43+ -v /path/to/conf :/gocron2/out \
4444 sstc/gocron2 ./init-cert.sh
4545
4646# Create certs for worker nodes
4747docker run --rm \
48- -v /path/to/out :/gocron2/out \
48+ -v /path/to/conf :/gocron2/out \
4949 sstc/gocron2 ./init-cert.sh 1.2.3.4
5050
5151# Configure main node: add those to /path/to/conf/app.ini
5252# enable_tls = true
53- # ca_file = /gocron2/out /Root_CA.crt
54- # cert_file = /gocron2/out /127.0.0.1.crt
55- # key_file = /gocron2/out /127.0.0.1.key
53+ # ca_file = /gocron2/conf /Root_CA.crt
54+ # cert_file = /gocron2/conf /127.0.0.1.crt
55+ # key_file = /gocron2/conf /127.0.0.1.key
5656
5757# Up main node
5858docker run -d --name gocron2 \
5959 -v /path/to/conf:/gocron2/conf \
6060 -v /path/to/log:/gocron2/log \
61- -v /path/to/out:/gocron2/out \
6261 -p 5920:5920 \
6362 sstc/gocron2:server
6463
65- # Copy cert files in /path/to/out for the worker nodes
64+ # Copy cert files in /path/to/conf for the worker nodes
6665
6766# Up all worker nodes
6867docker run -d --name gocron2-node \
69- -v /path/to/out :/gocron2/out \
68+ -v /path/to/conf :/gocron2/conf \
7069 -v /path/to/my-task-scripts:/app \
7170 -p 5921:5921 \
7271 sstc/gocron2 gocron2-node -allow-root \
7372 -enable-tls \
74- -ca-file /gocron2/out /Root_CA.crt \
75- -cert-file /gocron2/out /1.2.3.4.crt \
76- -key-file /gocron2/out /1.2.3.4.key
73+ -ca-file /gocron2/conf /Root_CA.crt \
74+ -cert-file /gocron2/conf /1.2.3.4.crt \
75+ -key-file /gocron2/conf /1.2.3.4.key
7776
7877# Open 127.0.0.1:5920 to install
7978```
0 commit comments