mirror of
https://github.com/cuigh/swirl
synced 2024-12-28 23:02:02 +00:00
Improve document
This commit is contained in:
parent
f503ddc875
commit
e025057893
@ -105,6 +105,7 @@ docker run -d -p 8001:8001 \
|
|||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
-v /data/swirl:/data/swirl \
|
-v /data/swirl:/data/swirl \
|
||||||
-e DB_TYPE=bolt \
|
-e DB_TYPE=bolt \
|
||||||
|
-e DB_ADDRESS=/data/swirl \
|
||||||
--name=swirl \
|
--name=swirl \
|
||||||
cuigh/swirl
|
cuigh/swirl
|
||||||
```
|
```
|
||||||
@ -129,7 +130,8 @@ docker service create \
|
|||||||
--name=swirl \
|
--name=swirl \
|
||||||
--publish=8001:8001/tcp \
|
--publish=8001:8001/tcp \
|
||||||
--env DB_TYPE=bolt \
|
--env DB_TYPE=bolt \
|
||||||
--constraint=node.role==manager \
|
--env DB_ADDRESS=/data/swirl \
|
||||||
|
--constraint=node.hostname==manager1 \
|
||||||
--mount=type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
|
--mount=type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
|
||||||
--mount=type=bind,src=/data/swirl,dst=/data/swirl \
|
--mount=type=bind,src=/data/swirl,dst=/data/swirl \
|
||||||
cuigh/swirl
|
cuigh/swirl
|
||||||
|
Loading…
Reference in New Issue
Block a user