Skip to content

Commit c3d4979

Browse files
committed
Testing 1.7.19 /c
1 parent 334ed02 commit c3d4979

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

traefik_stack5/stack-proxy.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ services:
4949
cpus: '0.10'
5050
memory: 4M
5151

52+
# running on each node, and using direct host ports
5253
# this traefik reverse proxy has a bunch of features:
53-
# - reverse proxy all 80/443 ingress traffic on a swarm
5454
# - dynamic config via each app's swarm service labels
5555
# - HA multi-container design for traefik
5656
# - runs traefik on host NIC directly, to improve performance
@@ -62,15 +62,15 @@ services:
6262
- target: 80
6363
protocol: tcp
6464
published: 80
65-
mode: ingress
65+
mode: host
6666
- target: 443
6767
protocol: tcp
6868
published: 443
69-
mode: ingress
69+
mode: host
7070
- target: 8080
7171
protocol: tcp
7272
published: 8080
73-
mode: ingress
73+
mode: host
7474
networks:
7575
- ntw_front
7676
- ntw_proxy
@@ -92,8 +92,8 @@ services:
9292
--accessLog
9393
--web.metrics.prometheus
9494
--web.metrics.prometheus.buckets="0.1,0.3,1.2,5.0"
95-
--web.address=:8080
9695
--ping
96+
#--web.address=:8080
9797
deploy:
9898
mode: replicated
9999
replicas: 1
@@ -114,6 +114,7 @@ services:
114114
labels:
115115
- "traefik.backend=traefik"
116116
- "traefik.enable=true"
117+
- "traefik.port=8080"
117118

118119
# https://github.com/pascalandy/docker-stack-this
119120
# inspired by https://github.com/BretFisher/dogvscat

0 commit comments

Comments
 (0)