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

Commit

Permalink
chore: updated docker-package, readme (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeplotean authored Nov 16, 2023
1 parent 532af34 commit a1e314d
Show file tree
Hide file tree
Showing 11 changed files with 68 additions and 92 deletions.
7 changes: 4 additions & 3 deletions docker-compose/.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
WALLETKIT_PORT=7000
WALLET_FRONTEND_PORT=3000
WALLET_BACKEND_PORT=4545
WEB_PORTAL_PORT=4000
VC_REPO_PORT=5000
ISSUER_PORT=8000
VERIFIER_PORT=9000
WALLET_BACKEND_PORT=4545
WALLET_FRONTEND_PORT=3000
HOSTNAME=host.docker.internal
48 changes: 28 additions & 20 deletions docker-compose/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
services:
walletkit:
image: waltid/walletkit:latest # backend docker image
command:
- run
environment:
WALTID_DATA_ROOT: /waltid-walletkit/data-root
WALTID_WALLET_BACKEND_BIND_ADDRESS: 0.0.0.0
WALTID_WALLET_BACKEND_PORT: "$WALLETKIT_PORT"
EXTERNAL_HOSTNAME: $HOSTNAME
volumes:
- ./walletkit:/waltid-walletkit/data-root # data store volume incl. config files.
extra_hosts:
- "$HOSTNAME:host-gateway"
wallet-backend:
image: waltid/wallet-backend:latest
volumes:
Expand All @@ -20,24 +7,45 @@ services:
wallet-frontend:
image: waltid/wallet-frontend:latest
environment:
NUXT_PUBLIC_ISSUER_URL: "http://localhost:$ISSUER_PORT"
issuer-portal:
image: waltid/ssikit-issuer-portal:latest
verifier-portal:
image: waltid/ssikit-verifier-portal:latest
NUXT_PUBLIC_ISSUER_CALLBACK_URL: "http://localhost:$WALLET_FRONTEND_PORT"
issuer:
image: waltid/issuer:latest
volumes:
- ./issuer/config:/waltid-issuer/config
verifier:
image: waltid/verifier:latest
volumes:
- ./verifier/config:/waltid-verifier/config
web-portal:
image: waltid/portal:latest
environment:
NEXT_PUBLIC_VC_REPO: "http://localhost:$VC_REPO_PORT"
NEXT_PUBLIC_ISSUER: "http://localhost:$ISSUER_PORT"
NEXT_PUBLIC_VERIFIER: "http://localhost:$VERIFIER_PORT"
NEXT_PUBLIC_WALLET: "http://localhost:$WALLET_FRONTEND_PORT"
vc-repo:
image: waltid/vc-repository:latest
ingress:
image: nginx:1.15.10-alpine
ports:
- target: $WALLET_FRONTEND_PORT
published: $WALLET_FRONTEND_PORT # wallet-frontend
protocol: tcp
mode: host
- target: $WEB_PORTAL_PORT
published: $WEB_PORTAL_PORT # web-portal
protocol: tcp
mode: host
- target: $VC_REPO_PORT
published: $VC_REPO_PORT # vc-repo
protocol: tcp
mode: host
- target: $ISSUER_PORT
published: $ISSUER_PORT # issuer-portal
published: $ISSUER_PORT # issuer-api
protocol: tcp
mode: host
- target: $VERIFIER_PORT
published: $VERIFIER_PORT # verifier-portal
published: $VERIFIER_PORT # verifier-api
protocol: tcp
mode: host
volumes:
Expand Down
36 changes: 22 additions & 14 deletions docker-compose/ingress.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,41 +16,49 @@ server {
# wallet-backend
server {
listen 4545;
location ~* /(api|webjars|verifier-api|issuer-api)/ {
proxy_pass http://walletkit:7000;

location / {
proxy_pass http://wallet-backend:4545;
proxy_redirect default;
}
}

# web-portal
server {
listen 4000;

location / {
proxy_pass http://wallet-backend;
proxy_pass http://web-portal:3000;
proxy_redirect default;
}
}

# issuer-portal
# vc-repo
server {
listen 8000;
location ~* /(api|webjars|verifier-api|issuer-api)/ {
proxy_pass http://walletkit:7000;
listen 5000;

location / {
proxy_pass http://vc-repo:3000;
proxy_redirect default;
}
}

# issuer
server {
listen 8000;

location / {
proxy_pass http://issuer-portal;
proxy_pass http://issuer:3000;
proxy_redirect default;
}
}

# verifier-portal
# verifier
server {
listen 9000;
location ~* /(api|webjars|verifier-api|issuer-api)/ {
proxy_pass http://walletkit:7000;
proxy_redirect default;
}

location / {
proxy_pass http://verifier-portal;
proxy_pass http://verifier:3000;
proxy_redirect default;
}
}
1 change: 1 addition & 0 deletions docker-compose/issuer/config/issuer-service.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
baseUrl = "localhost:8000"
2 changes: 2 additions & 0 deletions docker-compose/issuer/config/web.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
webHost = "0.0.0.0"
webPort = 3000
14 changes: 8 additions & 6 deletions docker-compose/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,20 @@ run a complete credential flow:
## Services

The complete list of services and their port mapping is following:
- walletkit: `7000`
- web-wallet-backend: `4545`
- web-wallet-frontend: `3000` (published)
- issuer-portal: `8000` (published)
- verifier-portal: `9000` (published)
- web-wallet-frontend: `3000`
- web-wallet-backend: `4545` (not published)
- web-portal: `4000`
- vc-repo: `5000`
- issuer: `8000`
- verifier: `9000`

## Configurations

Config locations:

- web-wallet: `wallet-backend/config`
- walletkit: `walletkit/config`
- issuer: `issuer/config`
- verifier: `verifier/config`
- ingress: `ingress.conf`
- environment: `.env`

Expand Down
1 change: 1 addition & 0 deletions docker-compose/verifier/config/verifier-service.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
baseUrl = "localhost:9000"
2 changes: 2 additions & 0 deletions docker-compose/verifier/config/web.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
webHost = "0.0.0.0"
webPort = 3000
25 changes: 0 additions & 25 deletions docker-compose/walletkit/config/issuer-config.json

This file was deleted.

13 changes: 0 additions & 13 deletions docker-compose/walletkit/config/verifier-config.json

This file was deleted.

11 changes: 0 additions & 11 deletions docker-compose/walletkit/config/wallet-config.json

This file was deleted.

0 comments on commit a1e314d

Please sign in to comment.