-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-dev.yml
55 lines (52 loc) · 2.26 KB
/
docker-compose-dev.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: "3.7"
services:
traefik:
image: traefik
ports:
- "8000:80"
- "8080:8080"
volumes:
- './traefik_dev.yml:/etc/traefik/traefik.yml'
- '/var/run/docker.sock:/var/run/docker.sock'
- '.:/plugins-local/src/github.com/adyanth/traefik-container-manager'
- './config_dev.yml:/etc/traefik/config.yml'
environment:
- TRAEFIK_PILOT_TOKEN=fc2fd759-11c9-4461-9bb5-978a790f4a45
labels:
- traefik.enable=true
- traefik.http.services.traefik.loadbalancer.server.port=8080
manager:
build: traefik-container-manager-service
image: adyanth/traefik-container-manager-service
expose:
- 10000
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
labels:
- traefik.enable=true
- traefik.http.routers.container-manager.entrypoints=entryhttp
- traefik.http.routers.container-manager.rule=HostRegexp(`{host:.+}`)
- traefik.http.routers.container-manager.priority=1
- traefik.http.middlewares.container-manager.errors.status=404
- traefik.http.middlewares.container-manager.errors.service=container-manager
- traefik.http.middlewares.container-manager.errors.query=/
- traefik.http.routers.container-manager.middlewares=manager-timeout
- traefik.http.services.container-manager.loadbalancer.server.port=80
- traefik.http.middlewares.manager-timeout.plugin.manager.name=generic-container-manager
# whoami:
# image: containous/whoami
# labels:
# - traefik-manager-name=whoami
whoami:
image: containous/whoami
labels:
- traefik.enable=true
- traefik.http.routers.whoami.entrypoints=entryhttp
- traefik.http.routers.whoami.rule=Host(`whoami.adyanth.lan`) || PathPrefix(`/whoami`)
- traefik.http.routers.whoami.middlewares=whoami-timeout
- traefik.http.middlewares.whoami-timeout.plugin.manager.timeout=5
- traefik.http.middlewares.whoami-timeout.plugin.manager.name=whoami
- traefik.http.services.whoami.loadbalancer.server.port=80
- traefik-container-manager.name=whoami
- traefik-container-manager.path=/whoami # Prefix matched to the incoming path.
- traefik-container-manager.host=whoami # Prefix matched to the incoming hostname. Can provide the subdomain or the complete fqdn.