diff --git a/docker-compose/.env b/docker-compose/.env index c352c1885..cdf93de69 100644 --- a/docker-compose/.env +++ b/docker-compose/.env @@ -6,6 +6,7 @@ WEB_PORTAL_PORT=7102 VC_REPO_PORT=7103 DEV_WALLET_FRONTEND_PORT=7104 VAULT_PORT=8200 +OPA_SERVER_PORT=8181 # database DB_NAME=waltid diff --git a/docker-compose/docker-compose.yaml b/docker-compose/docker-compose.yaml index c1c895381..94a0a4a28 100644 --- a/docker-compose/docker-compose.yaml +++ b/docker-compose/docker-compose.yaml @@ -46,6 +46,7 @@ services: profiles: - identity - all + - opa pull_policy: always build: context: ../ @@ -187,10 +188,10 @@ services: image: openpolicyagent/opa:latest container_name: opa-server profiles: - - identity + - opa - all ports: - - "8181:8181" + - "$OPA_SERVER_PORT:8181" command: [ "run", "--server", "--addr", ":8181" ] extra_hosts: - "host.docker.internal:host-gateway"