-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
135 lines (130 loc) · 2.83 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
version: '3.9'
services:
es:
image: registry.cn-beijing.aliyuncs.com/env_halfcoke/elasticsearch:7.11.1
container_name: es
environment:
- node.name=es
- cluster.name=es-docker-cluster
- cluster.initial_master_nodes=es
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms256m -Xmx256m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es_data:/usr/share/elasticsearch/data
- type: volume
source: es_conf
target: /usr/share/elasticsearch/config
ports:
- 9200:9200
networks:
- dblpweb
dblp_data_process:
image: registry.cn-beijing.aliyuncs.com/env_halfcoke/dblp-data-process:1.0.0
container_name: dblp_data_process
command:
- "python"
- "main.py"
depends_on:
- "es"
volumes:
- type: volume
source: dblpweblog
target: /var/log
- type: volume
source: dblpwebconf
target: /opt/dblpDataProcess/conf
- type: volume
source: dblpdata
target: /opt/dblpDataProcess/resources
networks:
- dblpweb
dblp_web_backend:
image: registry.cn-beijing.aliyuncs.com/env_halfcoke/dblp-web-backend:2.1.0
container_name: dblp_web_backend
depends_on:
- "es"
- "search_data_storage"
ports:
- 5051:5051
volumes:
- type: volume
source: dblpweblog
target: /var/log
- type: volume
source: dblpwebconf
target: /opt/dblpWebBackend/conf
networks:
- dblpweb
webserver:
image: nginx:1.19.7-alpine
container_name: webserver
depends_on:
- "es"
- "dblp_web_backend"
volumes:
- type: volume
source: nginx_conf
target: /etc/nginx
- type: volume
source: html
target: /usr/share/nginx/html
ports:
- 80:80
- 443:443
networks:
- dblpweb
search_data_storage:
image: redis:6-alpine
container_name: search_data_storage
volumes:
- redis_data:/data
networks:
- dblpweb
volumes:
dblpweblog:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/opt/dblpweb/logs'
dblpwebconf:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/opt/dblpweb/conf'
dblpdata:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/opt/dblpweb/data'
nginx_conf:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/opt/nginx/conf'
html:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/opt/dblpweb/searchwebui/dist'
es_data:
driver: local
redis_data:
driver: local
es_conf:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/opt/elasticsearch/conf'
networks:
dblpweb:
driver: bridge