-
Notifications
You must be signed in to change notification settings - Fork 9
/
compose.yaml
55 lines (51 loc) · 1.19 KB
/
compose.yaml
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
---
services:
es:
build: ./docker/es
container_name: searchnos-es
environment:
- "discovery.type=single-node"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "ELASTIC_PASSWORD=${ELASTIC_PASSWORD}"
- "http.cors.enabled=true"
- 'http.cors.allow-origin="*"'
- "xpack.security.http.ssl.enabled=false"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
volumes:
- es-data:/usr/share/elasticsearch/data
restart: always
indexer:
build:
context: .
dockerfile: ./docker/indexer/Dockerfile
container_name: searchnos-indexer
environment:
- SRC_RELAYS=${SRC_RELAYS}
- DEST_RELAYS=ws://searchnos:3000?api_key=${API_KEY}
restart: always
depends_on:
searchnos:
condition: service_started
searchnos:
build:
context: .
dockerfile: ./docker/searchnos/Dockerfile
container_name: searchnos
environment:
- ES_URL=http://elastic:${ELASTIC_PASSWORD}@es:9200
- PORT=3000
- API_KEY=${API_KEY}
restart: always
depends_on:
es:
condition: service_healthy
ports:
- 3000:3000
volumes:
es-data:
driver: local