-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.vc-services.yml
More file actions
134 lines (128 loc) · 3.69 KB
/
docker-compose.vc-services.yml
File metadata and controls
134 lines (128 loc) · 3.69 KB
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
126
127
128
129
130
131
132
133
134
# VC Services Docker Compose for E2E Testing
#
# This file provides production-grade VC issuer, verifier, and mockas services
# as an alternative to the mock services in docker-compose.test.yml.
#
# Usage:
# make up-vc # Start VC services
# make test-vc # Run tests with VC services
# make down-vc # Stop VC services
#
# Note: This configuration is designed to work alongside docker-compose.test.yml
# The VC services replace mock-issuer (9000), mock-verifier (9001).
# The mock-trust-pdp (9091) is still used from the main compose file.
#
# Configuration (via environment variables):
# VC_PATH - Path to SUNET/vc source code
# Local: ../vc (default)
# CI: ./vc
services:
# MongoDB - persistent storage for VC services
mongodb:
image: mongo:7.0
container_name: vc-mongodb-e2e
ports:
- "27017:27017"
volumes:
- mongodb-data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 5s
timeout: 5s
retries: 10
networks:
- e2e-test-network
# VC Issuer - Production-grade OpenID4VCI credential issuer
# Built from local SUNET/vc source for config compatibility
vc-issuer:
build:
context: ${VC_PATH:-../vc}
dockerfile: dockerfiles/worker
args:
SERVICE_NAME: issuer
image: vc-issuer-e2e-test:local
container_name: vc-issuer-e2e
ports:
- "9000:8080"
volumes:
- ./fixtures/vc-config.yaml:/config.yaml:ro
- ./fixtures/vc-pki:/pki:ro
- ./fixtures/vc-metadata:/metadata:ro
environment:
- VC_CONFIG_YAML=/config.yaml
depends_on:
mongodb:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8080/health"]
interval: 5s
timeout: 5s
retries: 10
start_period: 30s
networks:
- e2e-test-network
# VC Verifier - Production-grade OpenID4VP verifier with OIDC Provider
# Built from local SUNET/vc source for config compatibility
vc-verifier:
build:
context: ${VC_PATH:-../vc}
dockerfile: dockerfiles/web_worker
args:
SERVICE_NAME: verifier
image: vc-verifier-e2e-test:local
container_name: vc-verifier-e2e
ports:
- "9001:8080"
volumes:
- ./fixtures/vc-config.yaml:/config.yaml:ro
- ./fixtures/vc-pki:/pki:ro
- ./fixtures/vc-metadata:/metadata:ro
- ./fixtures/vc-presentation-requests:/presentation_requests:ro
environment:
- VC_CONFIG_YAML=/config.yaml
depends_on:
mongodb:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8080/health"]
interval: 5s
timeout: 5s
retries: 10
start_period: 30s
networks:
- e2e-test-network
# VC MockAS - Mock Authentication Server for simulating user authentication
# Built from local SUNET/vc source for config compatibility
vc-mockas:
build:
context: ${VC_PATH:-../vc}
dockerfile: dockerfiles/worker
args:
SERVICE_NAME: mockas
image: vc-mockas-e2e-test:local
container_name: vc-mockas-e2e
ports:
- "9002:8080"
volumes:
- ./fixtures/vc-config.yaml:/config.yaml:ro
- ./fixtures/vc-pki:/pki:ro
- ./fixtures/vc-users:/users:ro
environment:
- VC_CONFIG_YAML=/config.yaml
depends_on:
mongodb:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8080/health"]
interval: 5s
timeout: 5s
retries: 10
start_period: 30s
networks:
- e2e-test-network
networks:
e2e-test-network:
name: e2e-test-network
external: true
volumes:
mongodb-data: