Skip to content

Commit

Permalink
chore: configurable vault-port
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeplotean committed Dec 16, 2024
1 parent 9856538 commit 81ce8ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions docker-compose/.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ DEMO_WALLET_FRONTEND_PORT=7101
WEB_PORTAL_PORT=7102
VC_REPO_PORT=7103
DEV_WALLET_FRONTEND_PORT=7104
VAULT_PORT=8200

# database
DB_NAME=waltid
Expand Down
10 changes: 5 additions & 5 deletions docker-compose/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,14 @@ services:
timeout: 2s
retries: 5
volumes:
- ./vault/config.hcl:/vault/config/config.hcl:ro
- ./vault/config.hcl:/vault/config/config.hcl
- ./vault/init.sh:/vault/scripts/init.sh
- vault_data:/vault/file
ports:
- "8200:8200"
- "$VAULT_PORT:8200"
environment:
VAULT_DEV_LISTEN_ADDRESS: "0.0.0.0:8200"
VAULT_ADDR: "http://127.0.0.1:8200"
VAULT_DEV_LISTEN_ADDRESS: "0.0.0.0:$VAULT_PORT"
VAULT_ADDR: "http://127.0.0.1:$VAULT_PORT"
command: server -config=/vault/config/config.hcl -dev -dev-root-token-id="dev-only-token"
restart: always

Expand All @@ -173,7 +173,7 @@ services:
container_name: vault-init
environment:
VAULT_DEV_ROOT_TOKEN_ID: "dev-only-token"
VAULT_ADDR: "http://vault:8200"
VAULT_ADDR: "http://vault:$VAULT_PORT"
depends_on:
vault:
condition: service_healthy
Expand Down

0 comments on commit 81ce8ae

Please sign in to comment.