-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
53 lines (48 loc) · 1.04 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
version: '3.4'
services:
mongo:
image: "${REGISTRY_NAME}mongo:latest"
volumes:
- mongo_data:/data/db
networks:
- "internal"
restart: "unless-stopped"
elastic:
build:
context: ./elasticsearch
dockerfile: Dockerfile
image: "${REGISTRY_NAME}devclubiitd/elasticsearch:0.1"
volumes:
- elastic_data:/usr/share/elasticsearch/data
environment:
- discovery.type=single-node
ports:
- 9200:9200 # Need to expose for frontend
networks:
- "internal"
restart: "unless-stopped"
crawler:
build:
context: ./crawler
dockerfile: Dockerfile
image: "${REGISTRY_NAME}devclubiitd/haystack_crawler:0.1"
restart: "unless-stopped"
networks:
- "internal"
- "reverseproxy"
env_file:
- crawler/.env
environment:
- MONGODB_URI=mongo:27017
- ELASTIC_URI=elastic:9200
depends_on:
- mongo
- elastic
volumes:
mongo_data:
elastic_data:
networks:
reverseproxy:
external:
name: "reverseproxy"
internal: