Skip to content

Commit 04c3556

Browse files
committed
fix tarspro deploy container
1 parent 97c9d7d commit 04c3556

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pro/tars-deploy-container.md

+9
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ docker run -d --rm --net=host \
2121
-e TARS_OPEN_WEB=true \
2222
-e TARS_START_PORT=9999 \
2323
--name framework-pro \
24+
-v /data/tars:/data/tars \
2425
docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
2526
```
2627

@@ -51,6 +52,7 @@ docker run -d --rm --net=host \
5152
-e TARS_LOCALIP="192.168.11.1" \
5253
-e TARS_OPEN_WEB=true \
5354
-e TARS_START_PORT=9000 \
55+
-v /data/tars:/data/tars \
5456
--name framework-pro \
5557
docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
5658
```
@@ -65,6 +67,7 @@ docker run -d --rm --net=host \
6567
-e TARS_LOCALIP="192.168.11.2" \
6668
-e TARS_OPEN_WEB=true \
6769
-e TARS_START_PORT=9100 \
70+
-v /data/tars:/data/tars \
6871
--name framework-pro \
6972
docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
7073
```
@@ -79,6 +82,7 @@ docker run -d --rm --net=host \
7982
-e TARS_LOCALIP="192.168.11.3" \
8083
-e TARS_OPEN_WEB=true \
8184
-e TARS_START_PORT=9200 \
85+
-v /data/tars:/data/tars \
8286
--name framework-pro \
8387
docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
8488
```
@@ -96,6 +100,7 @@ docker run -d --rm --net=host \
96100
-e TARS_LOCALIP="192.168.11.1" \
97101
-e TARS_OPEN_WEB=true \
98102
-e TARS_START_PORT=9000 \
103+
-v /data/tars:/data/tars \
99104
--name framework-pro-1 \
100105
docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
101106
```
@@ -108,6 +113,7 @@ docker run -d --rm --net=host \
108113
-e TARS_REGISTRY="tcp -h 192.168.11.1 -p 7891" \
109114
-e TARS_LOCALIP="192.168.11.1" \
110115
-e TARS_START_PORT=9100 \
116+
-v /data/tars:/data/tars \
111117
--name framework-pro-2 \
112118
docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
113119
```
@@ -121,6 +127,7 @@ docker run -d --rm --net=host \
121127
-e TARS_REGISTRY="tcp -h 192.168.11.3 -p 7892" \
122128
-e TARS_LOCALIP="192.168.11.1" \
123129
-e TARS_START_PORT=9200 \
130+
-v /data/tars:/data/tars \
124131
--name framework-pro-3 \
125132
docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
126133

@@ -145,6 +152,7 @@ docker run -d --rm --net=host \
145152
-e TARS_NODENAME="$nodename" \
146153
-e TARS_LOCALIP="$localip" \
147154
-e TARS_OPEN_WEB=true \
155+
-v /data/tars:/data/tars \
148156
--name $nodename \
149157
docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
150158
```
@@ -159,6 +167,7 @@ docker run -d --rm --net=host \
159167
-e TARS_NODENAME="tarsnode-4" \
160168
-e TARS_LOCALIP="192.168.11.1" \
161169
-e TARS_START_PORT=9200 \
170+
-v /data/tars:/data/tars \
162171
--name tarsnode-4 \
163172
docker.tarsyun.com/tars-pro/framework-pro:v1.0.0
164173
```

0 commit comments

Comments
 (0)