-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
28 lines (25 loc) · 905 Bytes
/
compose.yml
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
version: '3.9'
services:
whoami-public:
image: traefik/whoami
labels:
- traefik.enable=true
- traefik.http.routers.whoami-public.rule=Host(`whoami-public.mydomain.com`)
- traefik.http.routers.whoami-public.entrypoints=websecure
- traefik.http.routers.whoami-public.middlewares=public-chain@file
- traefik.http.services.whoami-public.loadbalancer.server.port=80
networks:
- traefik-proxy
whoami-private:
image: traefik/whoami
labels:
- traefik.enable=true
- traefik.http.routers.whoami-private.rule=Host(`whoami-private.mydomain.com`)
- traefik.http.routers.whoami-private.entrypoints=websecure
- traefik.http.routers.whoami-private.middlewares=private-chain@file
- traefik.http.services.whoami-private.loadbalancer.server.port=80
networks:
- traefik-proxy
networks:
traefik-proxy:
external: true