-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
60 lines (60 loc) · 1.58 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
version: "3"
services:
pipeline:
build:
context: .
image: ld4p/sinopia_indexing_pipeline:latest
environment:
INDEX_URL: http://search:9200
BROKER_HOST: broker
depends_on:
- search
- mongo
mongo:
image: mongo:4.4
ports:
- 27017:27017
- 28017:28017
environment:
MONGO_INITDB_ROOT_USERNAME: sinopia
MONGO_INITDB_ROOT_PASSWORD: sekret
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ]
mongo-setup:
image: ld4p/sinopia_dev_setup:latest
# Replace image with build to build from local code. Do not commit docker-compose.yml.
# build:
# context: ../sinopia_api
# dockerfile: Dockerfile-setup
depends_on:
- mongo
reindexer:
build:
context: .
environment:
INDEX_URL: http://search:9200
BROKER_HOST: broker
INSIDE_CONTAINER: 'true'
command: bin/reindex
depends_on:
- pipeline
search:
image: ld4p/sinopia_elasticsearch:latest
entrypoint:
- elasticsearch
- -Ehttp.port=9200
- -Ehttp.cors.enabled=true
- -Ehttp.cors.allow-origin=http://searchui:1358,http://localhost:1358,http://127.0.0.1:1358
- -Ehttp.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
- -Ehttp.cors.allow-credentials=true
- -Etransport.host=localhost
- -Ebootstrap.system_call_filter=false
user: elasticsearch
ports:
- 9200:9200
- 9300:9300
searchui:
image: appbaseio/dejavu:latest
ports:
- 1358:1358
depends_on:
- search