Change the way the portainer ports are exposed.

This commit is contained in:
Andrea Dell'Amico 2023-05-26 18:02:48 +02:00
parent a8e4d547b3
commit 372a0dfa51
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 12 additions and 3 deletions

View File

@ -43,9 +43,18 @@ services:
{% if docker_swarm_cluster_haproxy_install %}
ports:
- "9443:9443"
- "9000:9000"
- "8000:8000"
- target: 9443
published: 9443
protocol: tcp
mode: 'ingress'
- target: 9000
published: 9000
protocol: tcp
mode: 'ingress'
- target: 8000
published: 8000
protocol: tcp
mode: 'ingress'
{% endif %}
volumes:
- portainer_server_data:/data