-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
73 lines (67 loc) · 1.57 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
version: "3.8"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.4.0
container_name: elasticsearch
environment:
- xpack.security.enabled=false
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
healthcheck: # to prevent apps from quering inexisting database
test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
interval: 5s
timeout: 5s
retries: 10
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
# website:
# build: ./website/
# ports:
# - 5000:5000
# depends_on:
# elasticsearch:
# condition: service_healthy
# database_backend:
# build: ./database_backend/
# ports:
# - 8080:8080
# depends_on:
# elasticsearch:
# condition: service_healthy
# rust_crawler:
# build: ./rust_crawler/
## command:
## --inp_file=urls.txt --out_file=out.txt --threads=4 --limit=200
# volumes:
# - cargo:/home/rust/.cargo
# - target:/home/rust/src/target
#
# depends_on:
# elasticsearch:
# condition: service_healthy
lang_detect_python:
build: ./lang_detect_python/
volumes:
- ./lang_detect_python/:/usr/src/app/
ports:
- 5001:5001
environment:
PORT: 5001
FLASK_DEBUG: 1
restart: always
volumes:
cargo: {}
target: {}
elasticsearch-data:
driver: local