-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
126 lines (115 loc) · 3.61 KB
/
docker-compose.yml
File metadata and controls
126 lines (115 loc) · 3.61 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
version: '3.5'
services:
localstack:
image: localstack/localstack
container_name: ${PREFIX-sciencebeam-editor}-localstack
restart: unless-stopped
environment:
- SERVICES=s3,sqs
volumes:
- './.localstack/startup:/docker-entrypoint-initaws.d:ro'
- './.localstack/config:/etc/localstackconf:ro'
- './articles:/tmp/articles:ro'
ports:
- 4566:4566
mongo:
image: mongo
container_name: ${PREFIX-sciencebeam-editor}-mongo
restart: unless-stopped
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=password
ports:
- 27017:27017
grobid:
image: lfoppiano/grobid:${GROBID_TAG-0.6.1}
container_name: ${PREFIX-sciencebeam-editor}-grobid
restart: unless-stopped
environment:
- JAVA_OPTS=-Xmx1g
sciencebeam:
image: elifesciences/sciencebeam:${SCIENCEBEAM_TAG-0.0.10}
container_name: ${PREFIX-sciencebeam-editor}-sciencebeam
restart: unless-stopped
depends_on:
- grobid
command: ./server.sh \
--host=0.0.0.0 --port=8075 \
--pipeline grobid \
--grobid-url http://${PREFIX-sciencebeam-editor}-grobid:8070/api
editor-article-store:
image: liberoadmin/editor-article-store:${TAG-latest}
container_name: ${PREFIX-sciencebeam-editor}-article-store
restart: unless-stopped
depends_on:
- mongo
- localstack
environment:
- PORT=8080
- DB_ENDPOINT=${PREFIX-sciencebeam-editor}-mongo:27017
- DB_NAME=editor
- DB_USER=root
- DB_PASSWORD=password
- AWS_REGION=us-east-1
- AWS_ACCESS_KEY=test
- AWS_SECRET_ACCESS_KEY=test
- AWS_BUCKET_INPUT_EVENT_QUEUE_URL=http://${PREFIX-sciencebeam-editor}-localstack:4566/000000000000/EditorImportQueue
- AWS_ENDPOINT=http://${PREFIX-sciencebeam-editor}-localstack:4566
- AWS_SRC_BUCKET=s3-editor-source-bucket
- AWS_EDITOR_BUCKET=s3-editor-destination-bucket
- IMPORT_TRANSFORM_ENABLED=true
- IMPORT_TRANSFORM_URL=http://${PREFIX-sciencebeam-editor}-transformer:8984/v1tov2
editor-transformer:
container_name: ${PREFIX-sciencebeam-editor}-transformer
image: elifesciences/basex-transformer:${TAG-latest}
restart: unless-stopped
editor-client:
image: liberoadmin/editor-client:${TAG-latest}
container_name: ${PREFIX-sciencebeam-editor}-client
restart: unless-stopped
depends_on:
- editor-article-store
file-watcher:
build:
context: './src/file-watcher'
image: file-watcher:${TAG-local}
container_name: ${PREFIX-sciencebeam-editor}-file-watcher
restart: unless-stopped
depends_on:
- mongo
- localstack
environment:
- S3_BUCKET=s3-editor-source-bucket
- AWS_ENDPOINT=http://${PREFIX-sciencebeam-editor}-localstack:4566
volumes:
- "./articles:/bucket-to-watch:ro"
bridge:
build:
context: './src/bridge'
image: bridge:${TAG-local}
container_name: ${PREFIX-sciencebeam-editor}-bridge
restart: unless-stopped
environment:
- DEPOSIT_PATH=/articles
volumes:
- "./articles:/articles:rw"
demo:
image: nginx:alpine
container_name: ${PREFIX-sciencebeam-editor}-demo
volumes:
- './src/demo:/usr/share/nginx/html:ro'
nginx:
image: nginx:alpine
container_name: ${PREFIX-sciencebeam-editor}-nginx
depends_on:
- editor-article-store
- editor-client
- sciencebeam
- demo
environment:
- PREFIX=${PREFIX-sciencebeam-editor}
- NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx
volumes:
- './.nginx:/etc/nginx/templates:ro'
ports:
- ${PORT-4000}:80