forked from GLEIF-IT/reg-pilot-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (60 loc) · 1.54 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
services:
reg-pilot-api:
build:
context: .
dockerfile: ./images/reg-pilot-api.dockerfile
image: 2byrds/reg-pilot-api:latest
ports:
- 8000:8000
# command: python src/regps/app/fastapi_app.py
volumes:
- ./:/usr/src/app/regps
environment:
- ENABLE_CORS=true
- VERIFIER_AUTHORIZATIONS=http://vlei-verifier:7676/authorizations/
- VERIFIER_PRESENTATIONS=http://vlei-verifier:7676/presentations/
- VERIFIER_REPORTS=http://vlei-verifier:7676/reports/
- VERIFIER_REQUESTS=http://vlei-verifier:7676/request/verify/
healthcheck:
test:
- CMD
- curl
- -f
- http://localhost:8000/docs
interval: 2s
timeout: 3s
retries: 5
start_period: 2s
# depends_on:
# - vlei-verifier
vlei-verifier:
image: 2byrds/vlei-verifier:latest
container_name: vlei-verifier
hostname: vlei-verifier
# depends_on:
# - vlei
# - witnesses
ports:
- 7676:7676
healthcheck:
test:
- CMD
- curl
- -f
- http://localhost:7676/health
interval: 2s
timeout: 3s
retries: 5
start_period: 2s
deps:
image: alpine
command: ['echo', 'Dependencies running']
depends_on:
reg-pilot-api:
condition: service_healthy
# vlei-server:
# condition: service_healthy
# vlei-verifier:
# condition: service_healthy
# witness-demo:
# condition: service_healthy