-
Notifications
You must be signed in to change notification settings - Fork 4
/
create_service.sh
33 lines (24 loc) · 1.1 KB
/
create_service.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
docker network create -d overlay --subnet=192.168.66.0/24 springcloud
#discovery
docker service create --with-registry-auth --network springcloud \
--name discovery --log-opt max-size=100m --log-opt max-file=3 \
-p 8761:80 \
registry.cn-shenzhen.aliyuncs.com/nothing/nothing-discovery:1.0
#chain
docker service create --with-registry-auth --network springcloud \
--name chain --log-opt max-size=100m --log-opt max-file=3 \
-p 8411:80 \
registry.cn-shenzhen.aliyuncs.com/nothing/nothing-chain:1.0
#geteway
docker service create --with-registry-auth --network springcloud \
--name api-gateway --log-opt max-size=100m --log-opt max-file=3 \
-p 8080:80 \
registry.cn-shenzhen.aliyuncs.com/nothing/nothing-gateway:1.0
#ucenter
docker service create --with-registry-auth --network springcloud \
--name ucenter --log-opt max-size=100m --log-opt max-file=3 \
registry.cn-shenzhen.aliyuncs.com/nothing/nothing-ucenter:1.0
#backend
docker service create --with-registry-auth --network springcloud \
--name backend --log-opt max-size=100m --log-opt max-file=3 \
registry.cn-shenzhen.aliyuncs.com/nothing/nothing-backend:1.0