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
|
- tar.gz
|
||||||
{{- end }}
|
{{- end }}
|
||||||
expose:
|
expose:
|
||||||
- "{{ .Forgejo.SshPort }}"
|
|
||||||
- "{{ .Forgejo.HttpPort }}"
|
- "{{ .Forgejo.HttpPort }}"
|
||||||
|
{{- if .Forgejo.StartSSHServer -}}
|
||||||
|
{{ print "" }}
|
||||||
|
- "{{ .Forgejo.SshPort }}"
|
||||||
|
{{- end -}}
|
||||||
|
{{ print "" }}
|
||||||
networks:
|
networks:
|
||||||
flow:
|
flow:
|
||||||
ipv4_address: "{{ .Forgejo.ContainerIpv4Address }}"
|
ipv4_address: "{{ .Forgejo.ContainerIpv4Address }}"
|
||||||
|
|
Loading…
Reference in a new issue