-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
87 lines (87 loc) · 2.56 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
78
79
80
81
82
83
84
85
86
87
version: "3"
services:
editor:
build:
context: .
args:
- USE_FIXTURES='false'
environment:
INDEX_URL: http://elasticsearch:9200
ports:
- 8000:8000
depends_on:
- api
pipeline:
image: ld4p/sinopia_indexing_pipeline:latest
# Replace image with build to build from local code. Do not commit docker-compose.yml.
# build:
# context: ../sinopia_indexing_pipeline
environment:
INDEX_URL: http://elasticsearch:9200
MONGODB_HOST: mongo
API_BASE_URL: http://api:3000
depends_on:
- elasticsearch
- mongo
elasticsearch:
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
# Uncomment to use Dejavu to monitor Elasticsearch. Do not commit docker-compose.yml.
# elasticsearch-ui:
# image: appbaseio/dejavu:latest
# ports:
# - 1358:1358
# depends_on:
# - elasticsearch
mongo:
image: mongo:4.4
ports:
- 27017:27017
- 28017:28017
environment:
MONGO_INITDB_ROOT_USERNAME: root
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
# Uncomment to use Mongo-Express to monitor Mongo. Do not commit docker-compose.yml.
# mongo-express:
# image: mongo-express
# ports:
# - 8082:8081
# environment:
# ME_CONFIG_MONGODB_ADMINUSERNAME: root
# ME_CONFIG_MONGODB_ADMINPASSWORD: sekret
api:
image: ld4p/sinopia_api:latest
# Replace image with build to build from local code. Do not commit docker-compose.yml.
# build:
# context: ../sinopia_api
# dockerfile: Dockerfile
ports:
- 3000:3000
environment:
MONGODB_HOST: mongo
NO_AUTH: "false"
AWS_ACCESS_KEY_ID: ${DOCKER_AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${DOCKER_AWS_SECRET_ACCESS_KEY}
depends_on:
- mongo