-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-tls.yml
124 lines (124 loc) · 3.49 KB
/
docker-compose-tls.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
version: "3.4"
services:
backend:
build:
dockerfile: ./dockerfiles/Dockerfile-dev
context: .
target: develop
image: cscfi/metadata-submitter-dev
container_name: "metadata_submitter_backend_dev"
volumes:
- ./config:/tls
ports:
- "5430:5430"
depends_on:
- database
- mockauth
- mockdoi
- mockmetax
restart: on-failure
environment:
- "MONGO_HOST=${MONGO_HOST}"
- "MONGO_SSL=${MONGO_SSL}"
- "MONGO_SSL_CA=${MONGO_SSL_CA}"
- "MONGO_SSL_CLIENT_CERT_KEY=${MONGO_SSL_CLIENT_CERT_KEY}"
- "AAI_CLIENT_SECRET=${AAI_CLIENT_SECRET}"
- "AAI_CLIENT_ID=${AAI_CLIENT_ID}"
- "OIDC_URL=${OIDC_URL}"
- "OIDC_URL_TEST=${OIDC_URL_TEST}"
- "BASE_URL=${BASE_URL}"
- "REDIRECT_URL=${REDIRECT_URL}"
- "LOG_LEVEL=${LOG_LEVEL}"
- "MONGO_DATABASE=${MONGO_DATABASE}"
- "MONGO_AUTHDB=${MONGO_AUTHDB}"
- "DOI_API=${DOI_API}"
- "DOI_PREFIX=${DOI_PREFIX}"
- "DOI_USER=${DOI_USER}"
- "DOI_KEY=${DOI_KEY}"
- "DISCOVERY_URL=${DISCOVERY_URL}"
- "METAX_ENABLED=${METAX_ENABLED}"
- "METAX_USER=${METAX_USER}"
- "METAX_PASS=${METAX_PASS}"
- "METAX_URL=${METAX_URL}"
- "REMS_ENABLED=${REMS_ENABLED}"
- "REMS_USER_ID=${REMS_USER_ID}"
- "REMS_KEY=${REMS_KEY}"
- "REMS_URL=${REMS_URL}"
database:
image: "mongo"
container_name: "metadata_submitter_database_dev"
command: "mongod --tlsMode=requireTLS --tlsCertificateKeyFile=/tls/combined2 --tlsCAFile=/tls/cacert"
restart: on-failure
environment:
- "MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}"
- "MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}"
volumes:
- data:/data/db
- ./config:/tls
- ./scripts/mongodb/init_mongo.js:/docker-entrypoint-initdb.d/init_mongo.js:ro
expose:
- 27017
ports:
- "27017:27017"
mockauth:
build:
dockerfile: ./dockerfiles/Dockerfile-dev
context: .
target: develop
image: cscfi/metadata-submitter-dev
environment:
- "LOG_LEVEL=${LOG_LEVEL}"
- "OIDC_URL=${OIDC_URL}"
- "OIDC_URL_TEST=${OIDC_URL_TEST}"
hostname: mockauth
expose:
- 8000
ports:
- 8000:8000
volumes:
- ./tests/integration/mock_auth.py:/mock_auth.py
entrypoint: [ "python", "/mock_auth.py", "0.0.0.0", "8000" ]
mockdoi:
build:
dockerfile: ./dockerfiles/Dockerfile-dev
context: .
target: develop
image: cscfi/metadata-submitter-dev
hostname: mockdoi
expose:
- 8001
ports:
- "8001:8001"
volumes:
- ./tests/integration/mock_doi_api.py:/mock_doi_api.py
entrypoint: [ "python", "/mock_doi_api.py", "0.0.0.0", "8001" ]
mockmetax:
build:
dockerfile: ./dockerfiles/Dockerfile-dev
context: .
target: develop
image: cscfi/metadata-submitter-dev
hostname: mockmetax
expose:
- 8002
ports:
- "8002:8002"
volumes:
- ./tests/integration/mock_metax_api.py:/mock_metax_api.py
entrypoint: [ "python", "/mock_metax_api.py", "0.0.0.0", "8002" ]
mockrems:
build:
dockerfile: ./dockerfiles/Dockerfile-dev
context: .
target: develop
image: cscfi/metadata-submitter-dev
hostname: mockrems
expose:
- 8003
ports:
- "8003:8003"
volumes:
- ./tests/integration/mock_rems_api.py:/mock_rems_api.py
entrypoint: [ "python", "/mock_rems_api.py", "0.0.0.0", "8003" ]
volumes:
data: