Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Commit a1e314d

Browse files
authored
chore: updated docker-package, readme (#69)
1 parent 532af34 commit a1e314d

11 files changed

+68
-92
lines changed

docker-compose/.env

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
WALLETKIT_PORT=7000
1+
WALLET_FRONTEND_PORT=3000
2+
WALLET_BACKEND_PORT=4545
3+
WEB_PORTAL_PORT=4000
4+
VC_REPO_PORT=5000
25
ISSUER_PORT=8000
36
VERIFIER_PORT=9000
4-
WALLET_BACKEND_PORT=4545
5-
WALLET_FRONTEND_PORT=3000
67
HOSTNAME=host.docker.internal

docker-compose/docker-compose.yaml

+28-20
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
11
services:
2-
walletkit:
3-
image: waltid/walletkit:latest # backend docker image
4-
command:
5-
- run
6-
environment:
7-
WALTID_DATA_ROOT: /waltid-walletkit/data-root
8-
WALTID_WALLET_BACKEND_BIND_ADDRESS: 0.0.0.0
9-
WALTID_WALLET_BACKEND_PORT: "$WALLETKIT_PORT"
10-
EXTERNAL_HOSTNAME: $HOSTNAME
11-
volumes:
12-
- ./walletkit:/waltid-walletkit/data-root # data store volume incl. config files.
13-
extra_hosts:
14-
- "$HOSTNAME:host-gateway"
152
wallet-backend:
163
image: waltid/wallet-backend:latest
174
volumes:
@@ -20,24 +7,45 @@ services:
207
wallet-frontend:
218
image: waltid/wallet-frontend:latest
229
environment:
23-
NUXT_PUBLIC_ISSUER_URL: "http://localhost:$ISSUER_PORT"
24-
issuer-portal:
25-
image: waltid/ssikit-issuer-portal:latest
26-
verifier-portal:
27-
image: waltid/ssikit-verifier-portal:latest
10+
NUXT_PUBLIC_ISSUER_CALLBACK_URL: "http://localhost:$WALLET_FRONTEND_PORT"
11+
issuer:
12+
image: waltid/issuer:latest
13+
volumes:
14+
- ./issuer/config:/waltid-issuer/config
15+
verifier:
16+
image: waltid/verifier:latest
17+
volumes:
18+
- ./verifier/config:/waltid-verifier/config
19+
web-portal:
20+
image: waltid/portal:latest
21+
environment:
22+
NEXT_PUBLIC_VC_REPO: "http://localhost:$VC_REPO_PORT"
23+
NEXT_PUBLIC_ISSUER: "http://localhost:$ISSUER_PORT"
24+
NEXT_PUBLIC_VERIFIER: "http://localhost:$VERIFIER_PORT"
25+
NEXT_PUBLIC_WALLET: "http://localhost:$WALLET_FRONTEND_PORT"
26+
vc-repo:
27+
image: waltid/vc-repository:latest
2828
ingress:
2929
image: nginx:1.15.10-alpine
3030
ports:
3131
- target: $WALLET_FRONTEND_PORT
3232
published: $WALLET_FRONTEND_PORT # wallet-frontend
3333
protocol: tcp
3434
mode: host
35+
- target: $WEB_PORTAL_PORT
36+
published: $WEB_PORTAL_PORT # web-portal
37+
protocol: tcp
38+
mode: host
39+
- target: $VC_REPO_PORT
40+
published: $VC_REPO_PORT # vc-repo
41+
protocol: tcp
42+
mode: host
3543
- target: $ISSUER_PORT
36-
published: $ISSUER_PORT # issuer-portal
44+
published: $ISSUER_PORT # issuer-api
3745
protocol: tcp
3846
mode: host
3947
- target: $VERIFIER_PORT
40-
published: $VERIFIER_PORT # verifier-portal
48+
published: $VERIFIER_PORT # verifier-api
4149
protocol: tcp
4250
mode: host
4351
volumes:

docker-compose/ingress.conf

+22-14
Original file line numberDiff line numberDiff line change
@@ -16,41 +16,49 @@ server {
1616
# wallet-backend
1717
server {
1818
listen 4545;
19-
location ~* /(api|webjars|verifier-api|issuer-api)/ {
20-
proxy_pass http://walletkit:7000;
19+
20+
location / {
21+
proxy_pass http://wallet-backend:4545;
2122
proxy_redirect default;
2223
}
24+
}
25+
26+
# web-portal
27+
server {
28+
listen 4000;
2329

2430
location / {
25-
proxy_pass http://wallet-backend;
31+
proxy_pass http://web-portal:3000;
2632
proxy_redirect default;
2733
}
2834
}
2935

30-
# issuer-portal
36+
# vc-repo
3137
server {
32-
listen 8000;
33-
location ~* /(api|webjars|verifier-api|issuer-api)/ {
34-
proxy_pass http://walletkit:7000;
38+
listen 5000;
39+
40+
location / {
41+
proxy_pass http://vc-repo:3000;
3542
proxy_redirect default;
3643
}
44+
}
45+
46+
# issuer
47+
server {
48+
listen 8000;
3749

3850
location / {
39-
proxy_pass http://issuer-portal;
51+
proxy_pass http://issuer:3000;
4052
proxy_redirect default;
4153
}
4254
}
4355

44-
# verifier-portal
56+
# verifier
4557
server {
4658
listen 9000;
47-
location ~* /(api|webjars|verifier-api|issuer-api)/ {
48-
proxy_pass http://walletkit:7000;
49-
proxy_redirect default;
50-
}
5159

5260
location / {
53-
proxy_pass http://verifier-portal;
61+
proxy_pass http://verifier:3000;
5462
proxy_redirect default;
5563
}
5664
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
baseUrl = "localhost:8000"

docker-compose/issuer/config/web.conf

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
webHost = "0.0.0.0"
2+
webPort = 3000

docker-compose/readme.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,20 @@ run a complete credential flow:
99
## Services
1010

1111
The complete list of services and their port mapping is following:
12-
- walletkit: `7000`
13-
- web-wallet-backend: `4545`
14-
- web-wallet-frontend: `3000` (published)
15-
- issuer-portal: `8000` (published)
16-
- verifier-portal: `9000` (published)
12+
- web-wallet-frontend: `3000`
13+
- web-wallet-backend: `4545` (not published)
14+
- web-portal: `4000`
15+
- vc-repo: `5000`
16+
- issuer: `8000`
17+
- verifier: `9000`
1718

1819
## Configurations
1920

2021
Config locations:
2122

2223
- web-wallet: `wallet-backend/config`
23-
- walletkit: `walletkit/config`
24+
- issuer: `issuer/config`
25+
- verifier: `verifier/config`
2426
- ingress: `ingress.conf`
2527
- environment: `.env`
2628

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
baseUrl = "localhost:9000"
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
webHost = "0.0.0.0"
2+
webPort = 3000

docker-compose/walletkit/config/issuer-config.json

-25
This file was deleted.

docker-compose/walletkit/config/verifier-config.json

-13
This file was deleted.

docker-compose/walletkit/config/wallet-config.json

-11
This file was deleted.

0 commit comments

Comments
 (0)