-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (75 loc) · 1.71 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
version: "3.9"
services:
es:
image: docker.elastic.co/elasticsearch/elasticsearch:8.3.2
container_name: elasticsearch
ports:
- "9200:9200"
environment:
- cluster.name=docker-cluster
- xpack.security.enabled=false
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
healthcheck:
test:
["CMD", "curl", "-f", "http://es:9200"]
interval: 3s
timeout: 5s
retries: 20
start_period: 5s
volumes:
- es_data:/usr/share/elasticsearch/data
es-init:
depends_on:
es:
condition: service_healthy
build: ./es-init
container_name: es-init
environment:
ELASTICSEARCH_URL: http://es:9200
kibana:
depends_on:
es:
condition: service_healthy
image: docker.elastic.co/kibana/kibana:8.3.2
container_name: kibana
environment:
SERVER_NAME: localhost
ELASTICSEARCH_URL: http://es:9200
ports:
- '5601:5601'
retrieve:
depends_on:
es:
condition: service_healthy
es-init:
condition: service_completed_successfully
build: ./retrieve
container_name: retrieve
environment:
MAX_GRPC_WORKERS: 2
GRPC_PORT: 9200
ELASTICSEARCH_URL: http://es:9200
ports:
- '9201:9200'
volumes:
- huggingface_data:/root/.cache/huggingface/transformers/
- retrieve_data:/app/resources/
web:
depends_on:
- retrieve
build: ./web
container_name: web
environment:
DJANGO_PORT: 8000
GRPC_SERVER_ADDRESS: retrieve:9200
DEBUG: false
ports:
- '8000:8000'
volumes:
es_data:
driver: local
retrieve_data:
driver: local
huggingface_data:
driver: local