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