This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
101 lines (94 loc) · 3 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: '3.5'
services:
localstack:
image: localstack/localstack
container_name: ${PREFIX-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-editor}-mongo
restart: unless-stopped
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=password
ports:
- 27017:27017
editor-article-store:
image: liberoadmin/editor-article-store:${TAG-latest}
container_name: ${PREFIX-editor}-article-store
restart: unless-stopped
depends_on:
- mongo
- localstack
environment:
- PORT=8080
- DB_ENDPOINT=${PREFIX-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-editor}-localstack:4566/000000000000/EditorImportQueue
- AWS_ENDPOINT=http://${PREFIX-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://transformer:8984/v1tov2
transformer:
container_name: transformer
image: elifesciences/basex-transformer:latest
ports:
- 8984:8984
editor-client:
image: liberoadmin/editor-client:${TAG-latest}
container_name: ${PREFIX-editor}-client
restart: unless-stopped
depends_on:
- editor-article-store
nginx:
image: nginx:alpine
container_name: ${PREFIX-editor}-nginx
depends_on:
- editor-article-store
- editor-client
environment:
- PREFIX=${PREFIX-editor}
- NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx
- NGINX_ENTRYPOINT_QUIET_LOGS=1
volumes:
- './.nginx:/etc/nginx/templates:ro'
ports:
- ${PORT-4000}:80
editor-pdf-service:
image: liberoadmin/editor-pdf-service:${TAG-latest}
container_name: ${PREFIX-editor}-pdf-service
depends_on:
- editor-article-store
ports:
- 4001:4001
environment:
- ARTICLE_STORE_PATH=http://${PREFIX-editor}-article-store:8080/articles/
- GENERATION_RESOURCES_PATH=http://nginx:80/api/v1/articles/
- PORT=4001
# TODO: UPDATE THESE VALUES TO BE MOCK SERVICE ENDPOINTS
- GENERATION_START_URL=http://editor-mock-service:1080/pdf-generation/start
- GENERATION_STATUS_URL=http://editor-mock-service:1080/pdf-generation/status
- GENERATION_API_KEY=mySuperSecretApiKey
mockServer:
image: mockserver/mockserver:mockserver-5.11.1
container_name: ${PREFIX-editor}-mock-service
ports:
- 1080:1080
environment:
MOCKSERVER_INITIALIZATION_JSON_PATH: /config/initializerJson.json
volumes:
- './.mockserver:/config:ro'