-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
60 lines (60 loc) · 1.66 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
60
version: '3.7'
services:
daredevil:
image: daredevil
deploy:
mode: replicated
replicas: 5
update_config:
parallelism: 1
delay: 1s
order: stop-first
labels:
- "traefik.enable=true"
- "traefik.port=80"
- "traefik.backend=daredevil"
- "traefik.backend.loadbalancer.swarm=true"
- "traefik.frontend.rule=Host:echoipdomain.ir,www.echoipdomain.ir"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 3
traefik:
image: traefik
command:
- "--web"
- "--entrypoints=Name:http Address::80 ForwardedHeaders.trustedIPs:127.0.0.1"
- "--entrypoints=Name:https Address::443 TLS"
- "--defaultentrypoints=http,https"
- "--acme"
- "--acme.storage=/acme.json"
- "--acme.entryPoint=https"
- "--acme.httpChallenge.entryPoint=http"
- "--acme.onHostRule=true"
- "--acme.onDemand=false"
- "--docker"
- "--docker.swarmmode"
- "--docker.watch"
- "--docker.domain=echoipdomain.ir"
- "--logLevel=DEBUG"
deploy:
labels:
- "traefik.enable=true"
- "traefik.port=8080"
- "traefik.frontend.rule=Host:echoipdomain.com"
- "traefik.frontend.auth.basic.users=username:password"
ports:
- target: 80
published: 80
protocol: tcp
mode: host
- target: 443
published: 443
protocol: tcp
mode: host
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /dev/null:/traefik.toml
- ./acme.json:/acme.json