-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.ts-backend.yml
More file actions
56 lines (54 loc) · 2.04 KB
/
docker-compose.ts-backend.yml
File metadata and controls
56 lines (54 loc) · 2.04 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
# Docker Compose Override for TypeScript wallet-backend-server
#
# Use this to test with the original TypeScript implementation instead of go-wallet-backend.
# The TypeScript backend does not support mode-based deployment or WebSocket transport.
#
# Usage:
# docker-compose -f docker-compose.test.yml -f docker-compose.ts-backend.yml up -d
# # or via Makefile:
# make up-ts-backend
#
# Note: WebSocket tests will be skipped when using this backend.
services:
# Override wallet-backend to use TypeScript implementation
wallet-backend:
build:
context: ${TS_BACKEND_PATH:-../wallet-backend-server}
dockerfile: Dockerfile
image: wallet-backend-server-e2e-test:local
container_name: wallet-backend-server-e2e-test
network_mode: host
# No --mode flag for TypeScript backend
command: []
environment:
# TypeScript backend uses different env var names
- JWT_SECRET=test-secret-for-e2e-testing-minimum-32-chars
- WEBAUTHN_RPID=localhost
- WEBAUTHN_ORIGIN=http://localhost:3000
- PORT=8080
- ADMIN_PORT=8081
- ADMIN_TOKEN=e2e-test-admin-token-for-testing-purposes-only
- LOG_LEVEL=debug
# Trust/PDP settings if supported
- TRUST_PDP_URL=http://localhost:9091
depends_on:
mock-issuer:
condition: service_healthy
mock-trust-pdp:
condition: service_healthy
mock-verifier:
condition: service_healthy
# Override frontend to not expect WebSocket
wallet-frontend:
build:
args:
- VITE_WALLET_BACKEND_URL=http://localhost:8080
# No separate engine URL for TypeScript backend
- VITE_WALLET_ENGINE_URL=http://localhost:8080
- VITE_WEBAUTHN_RPID=localhost
- VITE_OPENID4VCI_REDIRECT_URI=http://localhost:3000/
- VITE_STATIC_PUBLIC_URL=http://localhost:3000
- VITE_STATIC_NAME=E2E Test Wallet (TS Backend)
- VITE_VCT_REGISTRY_URL=http://localhost:8097/type-metadata
# HTTP only - TypeScript backend doesn't support WebSocket
- VITE_TRANSPORT_PREFERENCE=http