From 4e9baffd07b6ae02c97d0dec6a47911a5474aab0 Mon Sep 17 00:00:00 2001 From: mikeplotean Date: Wed, 13 Nov 2024 21:12:02 +0200 Subject: [PATCH] chore: configurable vault-port --- docker-compose/.env | 1 + docker-compose/docker-compose.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docker-compose/.env b/docker-compose/.env index 0faea4ed4..f826ccafb 100644 --- a/docker-compose/.env +++ b/docker-compose/.env @@ -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 diff --git a/docker-compose/docker-compose.yaml b/docker-compose/docker-compose.yaml index d8898b6d4..8db579b64 100644 --- a/docker-compose/docker-compose.yaml +++ b/docker-compose/docker-compose.yaml @@ -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 @@ -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