-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstack-hello-world.yml
More file actions
35 lines (27 loc) · 950 Bytes
/
stack-hello-world.yml
File metadata and controls
35 lines (27 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: '3.8'
services:
hello-world:
image: nonfiction/hello-world:latest
deploy:
mode: global
resources:
limits:
cpus: '0.2'
memory: 20M
labels:
traefik.enable: "true"
traefik.docker.network: "proxy"
traefik.http.routers.hello-world.entrypoints: "websecure"
traefik.http.routers.hello-world.rule: "Host(`hello-world.<%= $(bin/get swarm) -%>`)"
traefik.http.routers.hello-world.tls.certresolver: "resolver-dns"
traefik.http.routers.hello-world.tls.domains[0].main: "<%= $(bin/get swarm) -%>"
traefik.http.routers.hello-world.tls.domains[0].sans: "*.<%= $(bin/get swarm) -%>"
traefik.http.services.hello-world.loadbalancer.server.port: "80"
traefik.http.services.hello-world.loadbalancer.server.scheme: "http"
networks:
- proxy
networks:
proxy:
name: proxy
driver: overlay
external: true