-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
executable file
·98 lines (97 loc) · 2.09 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
executable file
·98 lines (97 loc) · 2.09 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
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
# docker-compose
# author: dreamlu
# github.com/dreamlu
version: '3'
services:
#nginx:
# container_name: d-nginx
# image: nginx
# restart: always
# ports:
# - 80:80
# - 443:443
# volumes:
# - ./nginx/conf.d:/etc/nginx/conf.d
# mysql-server
mysql:
image: mysql:5.7
#command:
#privileged: true
container_name: d-mysql
#image: mysql/mysql-server:5.7
#image: mysql:5.7
environment:
MYSQL_DATABASE: deercoder-chat
MYSQL_USER: dreamlu
MYSQL_PASSWORD: dreamlu
MYSQL_ROOT_PASSWORD: dreamlu
MYSQL_ROOT_HOST: '%'
TZ: Asia/Shanghai
ports:
- 3308:3306
restart: always
# sql备份目录
volumes:
- /home/ubuntu/dreamlu/bak:/bak
#expose:
# - 3308
# redis
redis:
image: redis:4.0
ports:
- 6378:6379
container_name: d-redis
restart: always
# consul
consul:
image: consul
ports:
- 8300:8300
- 8301:8301
- 8301:8301/udp
- 8302:8302
- 8302:8302/udp
- 8400:8400
- 8500:8500
- 54:53/udp
container_name: d-consul
restart: always
# api gateway
api-gateway:
image: registry.cn-hangzhou.aliyuncs.com/dreamlu/common:deercoder-chat-api-gateway
ports:
- 8006:8006
container_name: d-api
restart: always
# api gateway
api:
image: registry.cn-hangzhou.aliyuncs.com/dreamlu/common:deercoder-chat-api
ports:
- 8006:8006
container_name: d-api
restart: always
# user service
user-srv:
image: registry.cn-hangzhou.aliyuncs.com/dreamlu/common:deercoder-chat-user-srv
ports:
- 8000:8000
container_name: d-user
restart: always
#links:
# - mysql
# - redis
#depends_on:
# - mysql
# chat service
chat-srv:
image: registry.cn-hangzhou.aliyuncs.com/dreamlu/common:deercoder-chat-chat-srv
ports:
- 8001:8001
container_name: d-chat
restart: always
front-srv:
image: registry.cn-hangzhou.aliyuncs.com/dreamlu/common:deercoder-chat-front-srv
ports:
- 3000:3000
container_name: d-front
restart: always