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:
parent
5876036012
commit
0fd1f05fd7
1 changed files with 5 additions and 1 deletions
|
@ -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 }}"
|
||||
|
|
Loading…
Reference in a new issue