File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ version : ' 3.1'
2+ services :
3+
4+ stealthy :
5+ image : emilevauge/whoami
6+ networks : [ proxy ]
7+ deploy :
8+ replicas : 4
9+ labels :
10+ traefik.port : 80
11+ traefik.frontend.rule : PathPrefix:/stealthy
12+
13+ proxy :
14+ image : traefik
15+ command :
16+ - --web
17+ - --logLevel=DEBUG
18+ - --docker
19+ - --docker.swarmmode
20+ - --defaultentrypoints=https,http
21+ - --entryPoints=Name:http Address::80 Redirect.EntryPoint:https
22+ - --entryPoints=Name:https Address::443 TLS:run/secrets/localtest.me.pem,run/secrets/localtest.me.key;run/secrets/localhost.pem,run/secrets/localhost.key
23+ networks :
24+ - proxy
25+ ports :
26+ - 80:80
27+ - 443:443
28+ # - 8080:8080 # for dashboard
29+ deploy :
30+ labels :
31+ traefik.port : 8080
32+ traefik.docker.network : ssl_proxy
33+ traefik.frontend.rule : Host:traefik.localtest.me
34+ placement :
35+ constraints :
36+ - node.role == manager
37+ volumes :
38+ - /var/run/docker.sock:/var/run/docker.sock
39+ secrets :
40+ - localtest.me.key
41+ - localtest.me.pem
42+ - localhost.key
43+ - localhost.pem
44+ secrets :
45+ localtest.me.key :
46+ external : true
47+ localtest.me.pem :
48+ external : true
49+ localhost.key :
50+ external : true
51+ localhost.pem :
52+ external : true
53+ networks :
54+ proxy :
You can’t perform that action at this time.
0 commit comments