fix(forgejo): update container's exposed ports

Only expose the forgejo container's SSH port if the SSH server is
enabled.
This commit is contained in:
Dan Anglin 2024-10-15 01:59:02 +01:00
parent 5876036012
commit 0fd1f05fd7
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638

View file

@ -67,8 +67,12 @@ services:
- tar.gz
{{- end }}
expose:
- "{{ .Forgejo.SshPort }}"
- "{{ .Forgejo.HttpPort }}"
{{- if .Forgejo.StartSSHServer -}}
{{ print "" }}
- "{{ .Forgejo.SshPort }}"
{{- end -}}
{{ print "" }}
networks:
flow:
ipv4_address: "{{ .Forgejo.ContainerIpv4Address }}"