forked from RD17/ambar
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
124 lines (124 loc) · 2.6 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
version: "2.1"
networks:
internal_network:
services:
db:
restart: unless-stopped
networks:
- internal_network
build: ./MongoDB
volumes:
- ${dataPath}/db:/data/db
es:
restart: unless-stopped
networks:
- internal_network
build: ./ElasticSearch
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
rabbit:
restart: unless-stopped
networks:
- internal_network
build: ./Rabbit
hostname: rabbit
expose:
- "15672"
- "5672"
volumes:
- ${dataPath}/rabbit:/var/lib/rabbitmq
redis:
restart: unless-stopped
sysctls:
- net.core.somaxconn=1024
networks:
- internal_network
build: ./Redis
serviceapi:
depends_on:
redis:
condition: service_healthy
rabbit:
condition: service_healthy
es:
condition: service_healthy
db:
condition: service_healthy
restart: unless-stopped
networks:
- internal_network
build: ./ServiceApi
expose:
- "8081"
environment:
- mongoDbUrl=mongodb://db:27017/
- elasticSearchUrl=http://es:9200
- redisHost=redis
- redisPort=6379
- rabbitHost=amqp://rabbit
- langAnalyzer=${langAnalyzer}
webapi:
depends_on:
serviceapi:
condition: service_healthy
restart: unless-stopped
networks:
- internal_network
build: ./WebApi
ports:
- "127.0.0.1:8080:8080"
environment:
- uiLang=en
- mongoDbUrl=mongodb://db:27017/
- elasticSearchUrl=http://es:9200
- redisHost=redis
- redisPort=6379
- rabbitHost=amqp://rabbit
frontend:
depends_on:
webapi:
condition: service_healthy
build: ./FrontEnd
restart: unless-stopped
networks:
- internal_network
ports:
- "127.0.0.1:80:80"
expose:
- "80"
environment:
- api=http://${ambarHostIpAddress}:8080
pipeline0:
depends_on:
serviceapi:
condition: service_healthy
build: ./Pipeline
restart: unless-stopped
networks:
- internal_network
environment:
- id=0
- api_url=http://serviceapi:8081
- rabbit_host=rabbit
crawler0:
depends_on:
serviceapi:
condition: service_healthy
build: ./LocalCrawler
restart: unless-stopped
networks:
- internal_network
environment:
- name=${crawlerName}
volumes:
- ${pathToCrawl}:/usr/data