This repository has been archived by the owner on Apr 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
112 lines (107 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
102
103
104
105
106
107
108
109
110
111
112
version: '3'
services:
continuum-adaptor:
image: liberoadmin/continuum-adaptor:0.0.6
ports:
- "3001:3001"
healthcheck:
test: 'echo -e "GET /health\n\n" | nc localhost:3001'
interval: 2s
timeout: 10s
retries: 3
environment:
PORT: 3001
LOGIN_URL: http://nginx:9000/submit
LOGIN_RETURN_URL: http://nginx:9000/login
AUTHENTICATION_JWT_SECRET: super_secret_jam
CONTINUUM_JWT_SECRET: some_secret_from_journal
CONTINUUM_API_URL: http://reviewer-mocks:3003
DATABASE_NAME: postgres
DATABASE_USER: postgres
DATABASE_PASSWORD: postgres
DATABASE_HOST: postgres
DATABASE_PORT: 5432
ELIFE_API_GATEWAY_SECRET: ${ELIFE_API_GATEWAY_SECRET}
networks:
- reviewer
reviewer-mocks:
image: liberoadmin/reviewer-mocks:0.0.5
ports:
- "3003:3003"
healthcheck:
test: 'echo -e "GET /health\n\n" | nc localhost:3003'
interval: 2s
timeout: 10s
retries: 3
volumes:
- ./config/reviewer-mocks/config.json:/etc/reviewer/config.json:z
networks:
- reviewer
submission:
image: liberoadmin/reviewer-submission:0.0.6
ports:
- "3000:3000"
environment:
DATABASE_NAME: postgres
DATABASE_USER: postgres
DATABASE_PASSWORD: postgres
DATABASE_HOST: postgres
DATABASE_PORT: 5432
S3_AWS_ENDPOINT: http://s3:9000
S3_ACCESS_KEY_ID: minio
S3_SECRET_ACCESS_KEY: minio123
S3_FORCE_PATH_STYLE: 'true'
S3_FILE_BUCKET: test
MAX_QL_COMPLEXITY: 100
MAX_QL_DEPTH: 5
MAX_FILE_SIZE_IN_BYTES: 100000000
AUTHENTICATION_JWT_SECRET: super_secret_jam
USER_API_URL: http://continuum-adaptor:3001
SCIENCE_BEAM_URL: http://reviewer-mocks:3003/science-beam/convert
SCIENCE_BEAM_TIMEOUT: 20000
MECA_S3_PATH: 'meca-archive'
MECA_SFTP_PATH: '/upload'
MECA_SFTP_HOST: 'sftp'
MECA_SFTP_USERNAME: 'test'
MECA_SFTP_PASSWORD: 'test'
MECA_SFTP_PORT: 22
MECA_API_KEY: 'someApiKey'
MECA_EMAIL_PREFIX: '(local)'
MECA_EMAIL_RECIPIENT: 'libero-reviewer@mailinator.com'
SEND_MAIL: 'false'
MAIL_SENDER: 'noreply@elifesciences.org'
SES_REGION: ''
SES_SECRET_ACCESS_KEY: ''
SES_ACCESS_KEY_ID: ''
healthcheck:
test: 'echo -e "GET /health\n\n" | nc localhost:3000'
interval: 2s
timeout: 10s
retries: 3
networks:
- reviewer
client:
image: liberoadmin/reviewer-client:0.0.5
healthcheck:
interval: 2s
networks:
- reviewer
nginx:
image: nginx:stable-alpine@sha256:4411951a38c9fb7e91813971944d390ca7a824413ea318260e2bb4da86b172a8
networks:
- reviewer
ports:
- '9000:9000'
volumes:
- ./config/proxy/nginx.conf:/etc/nginx/nginx.conf
healthcheck:
test: 'echo -e "GET /login\n\n" | nc localhost:9000'
interval: 2s
depends_on:
- client
- submission
- reviewer-mocks
- continuum-adaptor
networks:
reviewer:
external: true