-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
102 lines (93 loc) · 2.3 KB
/
docker-compose.yml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: "3.5"
##
## 这里不提供构建Nacos镜像的脚本。
## 在生产环境中,本项目使用Nacos官方提供的Docker镜像,因此不在这里构建镜像
## 生产环境的Docker-Compose脚本请查看 https://github.com/Tumo-Team/tumo-scripts/tree/main/tumo-cloud
##
services:
tumo-cloud-mysql:
image: tumo-cloud-mysql
hostname: tumo-cloud-mysql
container_name: tumo-cloud-mysql
environment:
MYSQL_ROOT_PASSWORD: root
restart: always
ports:
- 3307:3306
networks:
- tumo_cloud_net
build:
context: ./db
tumo-cloud-redis:
image: redis:6.0
hostname: tumo-cloud-redis
container_name: tumo-cloud-redis
restart: always
privileged: true
command: "redis-server --appendonly yes"
environment:
- TZ=Asia/Shanghai
ports:
- 6380:6379
networks:
- tumo_cloud_net
tumo-cloud-gateway:
image: tumo-cloud-gateway
hostname: tumo-cloud-gateway
container_name: tumo-cloud-gateway
restart: always
ports:
- 9999:9999
networks:
tumo_cloud_net:
ipv4_address: 172.31.1.1
build:
context: ./tumo-cloud-gateway
tumo-cloud-auth:
image: tumo-cloud-auth
hostname: tumo-cloud-auth
container_name: tumo-cloud-auth
restart: always
ports:
- 3000:3000
networks:
- tumo_cloud_net
build:
context: ./tumo-cloud-auth
tumo-cloud-upms:
image: tumo-cloud-upms
hostname: tumo-cloud-upms
container_name: tumo-cloud-upms
restart: always
ports:
- 4000:4000
networks:
- tumo_cloud_net
build:
context: ./tumo-cloud-upms/tumo-cloud-upms-biz
tumo-cloud-visual-admin:
image: tumo-cloud-visual-admin
hostname: tumo-cloud-visual-admin
container_name: tumo-cloud-visual-admin
ports:
- 5001:5001
networks:
- tumo_cloud_net
build:
context: ./tumo-cloud-visual/tumo-cloud-visual-admin
tumo-cloud-visual-sentinel:
image: tumo-cloud-visual-sentinel
hostname: tumo-cloud-visual-sentinel
container_name: tumo-cloud-visual-sentinel
ports:
- 5002:5002
networks:
- tumo_cloud_net
build:
context: ./tumo-cloud-visual/tumo-cloud-visual-sentinel
networks:
tumo_cloud_net:
driver: bridge
ipam:
config:
- subnet: 172.31.1.0/16