-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 1.15 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
services:
consul:
image: consul:latest
container_name: consul
ports:
- "8500:8500" # Consul UI und HTTP API
- "8600:8600/udp" # DNS Interface
command: "agent -server -bootstrap-expect=1 -ui -client=0.0.0.0"
networks:
- dockul-net
traefik:
image: traefik:v2.10
container_name: traefik
command:
- "--api.insecure=true"
- "--providers.consul.endpoints=consul:8500"
- "--providers.consul.rootKey=traefik"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
ports:
- "80:80" # HTTP
- "443:443" # HTTPS
- "8080:8080" # Traefik Dashboard
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- dockul-net
depends_on:
- consul
dockul:
build: .
container_name: dockul
environment:
- CONSUL_HOST=consul
- SERVICE_PREFIX=dockul
- FILTER_NETWORK_NAME=dockul-net
- DEBUG=false
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- dockul-net
depends_on:
- consul
- traefik
networks:
dockul-net:
name: dockul-net