-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
81 lines (81 loc) · 2.19 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
version: "3"
services:
editor:
build:
context: .
ports:
- 8000:8000
depends_on:
- pipeline
pipeline:
image: ld4p/sinopia_indexing_pipeline:latest
environment:
INDEX_HOST: search
BROKER_HOST: broker
command: dockerize -wait tcp://broker:61613 -wait tcp://search:9200 -timeout 3m npm start
depends_on:
- broker
- search
- platform
broker:
image: rmohr/activemq
ports:
- 61613:61613
platformdata:
image: ld4p/sinopia_acl:0.2
environment:
INSIDE_CONTAINER: 'true'
TRELLIS_BASE_URL: http://platform:8080
COGNITO_USER_POOL_ID: ${COGNITO_USER_POOL_ID:-us-west-2_CGd9Wq136}
AWS_COGNITO_REGION: ${AWS_COGNITO_REGION:-us-west-2}
command: dockerize -wait tcp://platform:8080 -timeout 3m bin/migrate
depends_on:
- platform
platform:
image: ld4p/trellis-ext-db:latest
environment:
TRELLIS_BASE_URL: http://platform:8080
TRELLIS_LOGGING_LEVEL: INFO
TRELLIS_CONSOLE_LOGGING_THRESHOLD: INFO
ports:
- 8080:8080
- 8081:8081
depends_on:
- database
- broker
- migration
database:
image: postgres:latest
environment:
POSTGRES_USER: sinopia
POSTGRES_DB: sinopia
POSTGRES_PASSWORD: S1n0p1a
PGDATA: /var/lib/postgresql/data/pgdata/mydata
ports:
- 5432:5432
search:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
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
migration:
image: ld4p/trellis-ext-db:latest
command: ["/opt/trellis/bin/trellis-db", "db", "migrate", "/opt/trellis/etc/config.yml"]
depends_on:
- database