From 999d4789dd7e0e2b5eee77d244fdbdbbc58e02b0 Mon Sep 17 00:00:00 2001 From: Malte Date: Sun, 15 Dec 2024 19:18:11 +0100 Subject: [PATCH] fix port bindigns --- hedgedoc/init.sls | 4 ++-- pillar.example | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hedgedoc/init.sls b/hedgedoc/init.sls index 6856606..77dbbc3 100644 --- a/hedgedoc/init.sls +++ b/hedgedoc/init.sls @@ -38,8 +38,8 @@ hedgedoc_docker_present: - hedgedoc - volumes: - /opt/hedgedoc/uploads:/hedgedoc/public/uploads - - ports: - - "127.0.0.1:3000:3000" + - port_bindings: + - "{{ salt['pillar.get']('hedgedoc:container_web_port', "127.0.0.1:3000") }}:3000" - restart: always hedgedoc_database_present: diff --git a/pillar.example b/pillar.example index add2bd7..c80c64e 100644 --- a/pillar.example +++ b/pillar.example @@ -2,6 +2,7 @@ hedgedoc: image: path: quay.io/hedgedoc/hedgedoc version: 1.10.0 + container_web_port: 127.0.0.1:8080 oauth2: user_profile_url: https://login.example.com/realms/example/protocol/openid-connect/userinfo token_url: https://login.example.com/realms/example/protocol/openid-connect/token