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 7
/
docker-compose.yml
125 lines (120 loc) · 3.36 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
113
114
115
116
117
118
119
120
121
122
123
124
125
version: '3.4'
services:
reviewer-submission:
container_name: reviewer-submission_app
build:
context: './'
target: dev
image: libero/reviewer-submission:${IMAGE_TAG:-local}
ports:
- "3000:3000"
healthcheck:
test: 'echo -e "GET /\n\n" | nc localhost 3000'
interval: 3s
timeout: 10s
retries: 3
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
NEW_RELIC_HOME: /etc/reviewer/
MAX_QL_COMPLEXITY: 100
MAX_QL_DEPTH: 5
MAX_FILE_SIZE_IN_BYTES: 100000000
AUTHENTICATION_JWT_SECRET: super_secret_jam
USER_API_URL: http://reviewer-mocks:3003
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: '[email protected]'
SEND_MAIL: 'false'
MAIL_SENDER: '[email protected]'
SES_REGION: ''
SES_SECRET_ACCESS_KEY: ''
SES_ACCESS_KEY_ID: ''
INCLUDE_NEW_RELIC: 'false'
volumes:
- ./config:/etc/reviewer
- ./.eslintignore:/app/.eslintignore
- ./.eslintrc.js:/app/.eslintrc.js
- ./.prettierrc.js:/app/.prettierrc.js
- ./jest.config.js:/app/jest.config.js
- ./src/:/app/src
- ./package.json:/app/package.json
- ./yarn.lock:/app/yarn.lock
- ./tests/:/app/tests
- ./tsconfig.json:/app/tsconfig.json
networks:
- "reviewer"
postgres:
image: liberoadmin/reviewer-xpub-postgres:latest
container_name: reviewer-submission_postgres
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_PORT: 5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 2s
timeout: 30s
retries: 10
networks:
- "reviewer"
s3:
image: minio/minio:RELEASE.2020-02-27T00-23-05Z
container_name: reviewer-submission_s3
ports:
- "9004:9000"
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server /data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
networks:
- "reviewer"
s3_create-bucket:
image: minio/mc
depends_on:
- s3
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add submission http://s3:9000 minio minio123;
/usr/bin/mc rm -r --force submission/test;
/usr/bin/mc mb submission/test;
/usr/bin/mc policy set download submission/test;
/usr/bin/mc policy set public submission/test;
exit 0;
"
networks:
- "reviewer"
sftp:
image: atmoz/sftp:alpine
container_name: reviewer-submission_sftp
ports:
- "2222:22"
command: test:test:::upload
networks:
- "reviewer"
networks:
reviewer:
external:
name: "reviewer"