-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
97 lines (93 loc) · 2.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
97 lines (93 loc) · 2.1 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
version: '3'
networks:
jd_comment_network:
driver: bridge
services:
db:
image: mysql:latest
ports:
- "127.0.0.1:3306:3306"
volumes:
- ./db:/var/lib/mysql
- ./CreateSql/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
MYSQL_ROOT_PASSWORD: root
restart: always
# network_mode : host
networks:
- jd_comment_network
extra_hosts:
- "api.embbnux.com:10.98.10.98"
# dns:
# - 8.8.8.8
# - 9.9.9.9
go_Gin_Colly:
# build: ./go-Gin-colly
image: yeyr2:go_Gin_Colly
restart: always
ports:
- "9090:9090"
volumes:
- ../jd_comment/images:/JDColly/images
- ../jd_comment/wordsImages:/jd_comment/wordsImages
- ../jd_comment/logs:/JDColly/logs
depends_on:
- db
- pyAnalyzeComment
- pyWordCloud
command: ./main
# network_mode : host
networks:
- jd_comment_network
environment:
DB_HOST: db
DB_NAME: jdColly
DB_USER: root
DB_PASSWORD: root
extra_hosts: # 增加此行与如下一行
- "api.embbnux.com:10.98.10.98"
# dns:
# - 8.8.8.8
# - 9.9.9.9
pyWordCloud:
# build: ./pyWordCloud
image: yeyr2:pyWordCloud
restart: always
ports:
- "50051:50051"
volumes:
- ../jd_comment/wordsImages:/pyWordCloud/images
command: python service.py
# network_mode : host
networks:
- jd_comment_network
extra_hosts: # 增加此行与如下一行
- "api.embbnux.com:10.98.10.98"
# dns:
# - 8.8.8.8
# - 9.9.9.9
pyAnalyzeComment:
# build: ./pyAnalyzeComment
image: yeyr2:pyAnalyzeComment
restart: always
ports:
- "50052:50052"
command: python service.py
# network_mode : host
networks:
- jd_comment_network
extra_hosts: # 增加此行与如下一行
- "api.embbnux.com:10.98.10.98"
# dns:
# - 8.8.8.8
# - 9.9.9.9
web:
image: yeyr2:web
restart: always
ports:
- "8080:8080"
command: npm run serve
networks:
- jd_comment_network
extra_hosts:
- "api.embbnux.com:10.98.10.98"