This repository has been archived by the owner on Aug 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 377
/
docker-compose.yml
147 lines (143 loc) · 3.27 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
136
137
138
139
140
141
142
143
144
145
146
147
version: "2.1"
networks:
internal_network:
services:
db:
restart: always
networks:
- internal_network
image: repo.ambar.cloud:443/ambar-mongodb:2.1
environment:
- cacheSizeGB=2
volumes:
- ${dataPath}/db:/data/db
expose:
- "27017"
es:
restart: always
networks:
- internal_network
image: repo.ambar.cloud:443/ambar-es:2.1
expose:
- "9200"
environment:
- cluster.name=ambar-es
- ES_JAVA_OPTS=-Xms2g -Xmx2g
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- ${dataPath}/es:/usr/share/elasticsearch/data
rabbit:
restart: always
networks:
- internal_network
image: repo.ambar.cloud:443/ambar-rabbit:2.1
hostname: rabbit
expose:
- "15672"
- "5672"
volumes:
- ${dataPath}/rabbit:/var/lib/rabbitmq
redis:
restart: always
sysctls:
- net.core.somaxconn=1024
networks:
- internal_network
image: repo.ambar.cloud:443/ambar-redis:2.1
expose:
- "6379"
serviceapi:
depends_on:
redis:
condition: service_healthy
rabbit:
condition: service_healthy
es:
condition: service_healthy
db:
condition: service_healthy
restart: always
networks:
- internal_network
image: repo.ambar.cloud:443/ambar-serviceapi:2.1
expose:
- "8081"
environment:
- mongoDbUrl=mongodb://db:27017/ambar_data
- elasticSearchUrl=http://es:9200
- redisHost=redis
- redisPort=6379
- rabbitHost=amqp://rabbit
- langAnalyzer=${langAnalyzer}
- SLAO_HOSTNAME=ambar
- SLAO_API_KEY=
webapi:
depends_on:
serviceapi:
condition: service_healthy
restart: always
networks:
- internal_network
image: repo.ambar.cloud:443/ambar-webapi:2.1
expose:
- "8080"
ports:
- "8080:8080"
environment:
- uiLang=en
- mongoDbUrl=mongodb://db:27017/ambar_data
- elasticSearchUrl=http://es:9200
- redisHost=redis
- redisPort=6379
- serviceApiUrl=http://serviceapi:8081
- rabbitHost=amqp://rabbit
- SLAO_HOSTNAME=ambar
- SLAO_API_KEY=
frontend:
depends_on:
webapi:
condition: service_healthy
image: repo.ambar.cloud:443/ambar-frontend:2.1
restart: always
networks:
- internal_network
ports:
- "80:80"
expose:
- "80"
environment:
- api=http://${ambarHostIpAddress}:8080
pipeline0:
depends_on:
serviceapi:
condition: service_healthy
image: repo.ambar.cloud:443/ambar-pipeline:2.1
restart: always
networks:
- internal_network
environment:
- id=0
- api_url=http://serviceapi:8081
- rabbit_host=amqp://rabbit
${crawlerName}:
depends_on:
serviceapi:
condition: service_healthy
image: repo.ambar.cloud:443/ambar-local-crawler:2.1
restart: always
networks:
- internal_network
expose:
- "8082"
environment:
- name=${crawlerName}
volumes:
- ${pathToCrawl}:/usr/data