-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (58 loc) · 1.5 KB
/
docker-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
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
56
57
58
59
version: "3.3"
services:
consul:
image: consul
container_name: consul
environment:
CONSUL_LOCAL_CONFIG: '{"skip_leave_on_interrupt": true}'
ports:
- 8300:8300
- 8301:8301
- 8301:8301/udp
- 8302:8302
- 8302:8302/udp
- 8600:8600
- 8600:8600/udp
- 8500:8500
command: consul agent -data-dir=/tmp/consul -server -bootstrap -ui -node=WayneChu_nas -bind=0.0.0.0 -client=0.0.0.0
labels:
- traefik.enable=true
- traefik.port=8500
- traefik.docker.network=traefik
networks:
- traefik
registrator:
image: gliderlabs/registrator:master
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
command: consul://0.0.0.0:8500
container_name: registrator
network_mode: host
restart: always
depends_on:
- consul
proxy:
image: traefik:v2.1
restart: always
container_name: proxy
ports:
- "3000:80"
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
command: -c /dev/null --api --logLevel=DEBUG --consulcatalog.endpoint=waynechu.synology.me:8500
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik.toml:/etc/traefik/traefik.toml
depends_on:
- consul
labels:
- traefik.enable=true
- traefik.port=8080
- traefik.docker.network=traefik
- SERVICE_TAGS=traefik.enable=false
networks:
- traefik
networks:
traefik:
external: true