Skip to content
Snippets Groups Projects
Commit 0af22b38 authored by Lyuben Penkovski's avatar Lyuben Penkovski
Browse files

Add the signer service

parent c5d4258d
No related branches found
No related tags found
1 merge request!18Add the signer service
...@@ -112,3 +112,14 @@ The Redis server can be reached at `localhost:6397` from your ...@@ -112,3 +112,14 @@ The Redis server can be reached at `localhost:6397` from your
local machine. local machine.
The services access Redis from their containers as `redis:6397` The services access Redis from their containers as `redis:6397`
### Hashicorp Vault
When the vault is first started with docker-compose on your local machine,
it's not yet initialized. To initialize it and get a vault token which can be used
by the [signer](../signer) service, you should open the Vault UI and follow the
initial steps to generate a token. The token then must be set as a value for the
ENV variable VAULT_TOKEN in [signer.env](./env/signer.env)
Vault UI is exposed at http://0.0.0.0:8200/ui/vault
...@@ -58,6 +58,20 @@ services: ...@@ -58,6 +58,20 @@ services:
- "8084:8080" - "8084:8080"
depends_on: depends_on:
- mongo - mongo
- signer
signer:
container_name: signer
build:
context: $GOPATH/src/code.vereign.com/gaiax/tsa/signer
dockerfile: deployment/compose/Dockerfile
volumes:
- "$GOPATH/src/code.vereign.com/gaiax/tsa/signer:/go/src/code.vereign.com/gaiax/tsa/signer"
env_file:
- ./env/signer.env
ports:
- "8085:8080"
depends_on:
- vault - vault
didresolver: didresolver:
......
...@@ -4,13 +4,10 @@ HTTP_PORT="8080" ...@@ -4,13 +4,10 @@ HTTP_PORT="8080"
HTTP_IDLE_TIMEOUT="120s" HTTP_IDLE_TIMEOUT="120s"
HTTP_READ_TIMEOUT="10s" HTTP_READ_TIMEOUT="10s"
HTTP_WRITE_TIMEOUT="10s" HTTP_WRITE_TIMEOUT="10s"
CACHE_ADDR="http://cache:8080"
POLICY_ADDR="http://policy:8080"
MONGO_ADDR="mongodb://mongo:27017/infohub?replicaSet=rs0&authSource=admin" MONGO_ADDR="mongodb://mongo:27017/infohub?replicaSet=rs0&authSource=admin"
MONGO_USER="root" MONGO_USER="root"
MONGO_PASS="root" MONGO_PASS="root"
VAULT_ADDR="http://vault:8200" CACHE_ADDR="http://cache:8080"
VAULT_TOKEN="hvs.SaCAgNfJk91T1Qikb3XxH3ve" POLICY_ADDR="http://policy:8080"
VAULT_KEYNAME="signkey1" SIGNER_ADDR="http://signer:8080"
CRED_ISSUER_NAME="ocm-123" ISSUER_URI="did:ocm:123"
CRED_KEYNAME="signkey1"
\ No newline at end of file
LOG_LEVEL="debug"
HTTP_HOST=""
HTTP_PORT="8080"
HTTP_IDLE_TIMEOUT="120s"
HTTP_READ_TIMEOUT="10s"
HTTP_WRITE_TIMEOUT="10s"
VAULT_ADDR="http://vault:8200"
VAULT_TOKEN="hvs.SaCAgNfJk91T1Qikb3XxH3ve"
VAULT_SIGNING_KEY="key1"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment