Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit eca0fb0

Browse files
author
Jozef Volak
committed
Disable traefik docker exposed by default
1 parent d686854 commit eca0fb0

File tree

4 files changed

+3
-27
lines changed

4 files changed

+3
-27
lines changed

composefiles/swarm-kafka-connector.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ x-placement: &placement
1919
constraints:
2020
- node.role == manager
2121

22-
x-traefik-label: &traefik_kafka_labels
23-
- traefik.enable=false
22+
x-traefik-label: &kafka_labels
2423
- kafka=frinx
2524

2625
services:
@@ -61,7 +60,7 @@ services:
6160
cap_drop:
6261
- all
6362
deploy:
64-
labels: *traefik_kafka_labels
63+
labels: *kafka_labels
6564
<<: *placement
6665
restart_policy:
6766
condition: any

composefiles/swarm-uniconfig.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ x-placement-postgres: &placement-postgres
3737
x-tcp_keepalive: &tcp_keepalive
3838
net.ipv4.tcp_keepalive_time: 300
3939

40-
x-traefik-label: &traefik_labels
41-
- traefik.enable=false
42-
4340
services:
4441
uniconfig:
4542
image: traefik:v2.7
@@ -64,6 +61,7 @@ services:
6461
- TRAEFIK_ENTRYPOINTS_CLISHELL=true
6562
- TRAEFIK_ENTRYPOINTS_CLISHELL_ADDRESS=:2022
6663
- TRAEFIK_PROVIDERS_DOCKER_SWARMMODE=true
64+
- TRAEFIK_PROVIDERS_DOCKER_EXPOSEDBYDEFAULT=false
6765
- TRAEFIK_PROVIDERS_DOCKER_WATCH=true
6866
- TRAEFIK_SERVERSTRANSPORT_ROOTCAS=/run/secrets/frinx_uniconfig_tls_cert.pem
6967
- TRAEFIK_SERVERSTRANSPORT_INSECURESKIPVERIFY=true
@@ -217,8 +215,6 @@ services:
217215
logging: *logging_loki
218216
networks:
219217
- uniconfig-network
220-
labels:
221-
- traefik.enable=false
222218
volumes:
223219
- frinx_uniconfig-postgresql_data:/var/lib/postgresql/data
224220
secrets:
@@ -266,7 +262,6 @@ services:
266262
sysctls:
267263
<<: *tcp_keepalive
268264
deploy:
269-
labels: *traefik_labels
270265
<<: *placement-postgres
271266
restart_policy:
272267
condition: any

composefiles/swarm-unistore.yml

-6
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,10 @@ x-placement: &placement
2727
x-tcp_keepalive: &tcp_keepalive
2828
net.ipv4.tcp_keepalive_time: 300
2929

30-
x-traefik-label: &traefik_labels
31-
- traefik.enable=false
32-
3330
services:
3431
unistore:
3532
image: frinx/uniconfig:5.1.5
3633
logging: *logging_loki
37-
labels:
38-
- traefik.enable=false
3934
environment:
4035
- CONTAINER_ID={{.Task.Slot}}
4136
- SERVICE_NAME={{.Service.Name}}
@@ -94,7 +89,6 @@ services:
9489
sysctls:
9590
<<: *tcp_keepalive
9691
deploy:
97-
labels: *traefik_labels
9892
<<: *placement
9993
restart_policy:
10094
condition: any

composefiles/swarm-workflow-manager.yml

-12
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ x-placement: &placement
2020
constraints:
2121
- node.role == manager
2222

23-
x-traefik-label: &traefik_labels
24-
- traefik.enable=false
25-
2623
x-tcp_keepalive: &tcp_keepalive
2724
net.ipv4.tcp_keepalive_time: 300
2825

@@ -110,7 +107,6 @@ services:
110107
cap_drop:
111108
- all
112109
deploy:
113-
labels: *traefik_labels
114110
<<: *placement
115111
restart_policy:
116112
condition: any
@@ -159,7 +155,6 @@ services:
159155
sysctls:
160156
<<: *tcp_keepalive
161157
deploy:
162-
labels: *traefik_labels
163158
<<: *placement
164159
restart_policy:
165160
condition: any
@@ -216,7 +211,6 @@ services:
216211
cap_drop:
217212
- all
218213
deploy:
219-
labels: *traefik_labels
220214
<<: *placement
221215
restart_policy:
222216
condition: any
@@ -267,7 +261,6 @@ services:
267261
sysctls:
268262
<<: *tcp_keepalive
269263
deploy:
270-
labels: *traefik_labels
271264
<<: *placement
272265
restart_policy:
273266
condition: any
@@ -314,7 +307,6 @@ services:
314307
sysctls:
315308
<<: *tcp_keepalive
316309
deploy:
317-
labels: *traefik_labels
318310
<<: *placement
319311
restart_policy:
320312
condition: any
@@ -358,7 +350,6 @@ services:
358350
cap_drop:
359351
- all
360352
deploy:
361-
labels: *traefik_labels
362353
<<: *placement
363354
restart_policy:
364355
condition: any
@@ -404,7 +395,6 @@ services:
404395
sysctls:
405396
<<: *tcp_keepalive
406397
deploy:
407-
labels: *traefik_labels
408398
<<: *placement
409399
restart_policy:
410400
condition: any
@@ -454,7 +444,6 @@ services:
454444
cap_drop:
455445
- all
456446
deploy:
457-
labels: *traefik_labels
458447
<<: *placement
459448
restart_policy:
460449
condition: any
@@ -496,7 +485,6 @@ services:
496485
cap_drop:
497486
- all
498487
deploy:
499-
labels: *traefik_labels
500488
<<: *placement
501489
restart_policy:
502490
condition: any

0 commit comments

Comments
 (0)