-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-demo.yml
123 lines (108 loc) · 2.3 KB
/
docker-compose-demo.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
services:
credentials:
extends:
file: docker-compose.yml
service: credentials
data_loader:
container_name: data_loader
command:
- "/bin/sh"
- "/load_data.sh"
depends_on:
s3inbox:
condition: service_started
image: python:3.10-alpine
networks:
- secure
volumes:
- ./scripts/load_data.sh:/load_data.sh
- shared:/shared
- cacert:/cacert
### OIDC (LS-AAI in a box)
oidc:
command:
- /bin/sh
- -c
- |
pip install --upgrade pip
pip install aiohttp Authlib joserfc requests
python -u /oidc.py
container_name: oidc
depends_on:
credentials:
condition: service_completed_successfully
healthcheck:
test: ["CMD", "python3", "-c", 'import requests; print(requests.get(url = "https://localhost:8080/jwk", verify="/shared/cert/ca.crt").text)']
interval: 5s
timeout: 10s
retries: 20
image: python:3.10-slim
networks:
- public
ports:
- "8080:8080"
restart: always
volumes:
- ./servers/oidc.py:/oidc.py
- shared:/shared
###
rabbitmq:
extends:
file: docker-compose.yml
service: rabbitmq
postgres:
extends:
file: docker-compose.yml
service: postgres
s3:
extends:
file: docker-compose.yml
service: s3
## data ingest pipeline
download:
extends:
file: docker-compose.yml
service: download
depends_on:
oidc:
condition: service_healthy
environment:
- OIDC_CONFIGURATION_URL=https://oidc:8080/.well-known/openid-configuration
finalize:
extends:
file: docker-compose.yml
service: finalize
ingest:
extends:
file: docker-compose.yml
service: ingest
mapper:
extends:
file: docker-compose.yml
service: mapper
verify:
extends:
file: docker-compose.yml
service: verify
s3inbox:
extends:
file: docker-compose.yml
service: s3inbox
environment:
- SERVER_JWTPUBKEYURL=https://oidc:8080/jwk
volumes:
- cacert:/etc/ssl/certs/
reencrypt:
extends:
file: docker-compose.yml
service: reencrypt
volumes:
cacert:
pgdata:
shared:
s3data:
networks:
public:
secure:
my-app-network:
name: my-app-network