-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose-service.yml
More file actions
executable file
·58 lines (53 loc) · 1.32 KB
/
docker-compose-service.yml
File metadata and controls
executable file
·58 lines (53 loc) · 1.32 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: '2'
services:
# ---------------------------
# 用户服务
# ---------------------------
user-service:
image: registry.cn-hangzhou.aliyuncs.com/hex-springcloud/user-service:0.0.1-SNAPSHOT
container_name: user-service
restart: always
# depends_on:
# - eureka-service
# - config-service
# - tx-manager
ports:
- "8001:8001"
networks:
- net
# ---------------------------
# 商品服务
# ---------------------------
mall-service:
image: registry.cn-hangzhou.aliyuncs.com/hex-springcloud/mall-service:0.0.1-SNAPSHOT
container_name: mall-service
restart: always
ports:
- "8002:8002"
networks:
- net
# ---------------------------
# 订单服务
# ---------------------------
order-service:
image: registry.cn-hangzhou.aliyuncs.com/hex-springcloud/order-service:0.0.1-SNAPSHOT
container_name: order-service
restart: always
ports:
- "8003:8003"
networks:
- net
# ---------------------------
# 监控服务
# ---------------------------
# monitor-service:
# image: registry.cn-hangzhou.aliyuncs.com/hex-springcloud/monitor-service:0.0.1-SNAPSHOT
# container_name: monitor-service
# restart: always
# ports:
# - "8020:8020"
# networks:
# - net
networks:
net:
driver: bridge