make host ports configurable

This commit is contained in:
Elouin 2024-07-10 20:56:29 +02:00
parent 6f01318bba
commit 44f3763e28
2 changed files with 9 additions and 8 deletions

View file

@ -29,5 +29,5 @@ forgejo docker conatiner running:
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- port_bindings: - port_bindings:
- "127.0.0.1:3000:3000" - "{{ salt['pillar.get']('forgejo:container_web_port', 127.0.0.1:3000) }}:3000"
- "222:22" - "{{ salt['pillar.get']('forgejo:config:server:ssh_port', 22) }}:22"

View file

@ -1,4 +1,5 @@
forgejo: forgejo:
container_web_port: 3000
image: image:
path: codeberg.org/forgejo/forgejo path: codeberg.org/forgejo/forgejo
version: 7.0.5 version: 7.0.5