· 6 years ago · Jun 14, 2019, 01:16 PM
1defaultEntryPoints = ["http", "https"]
2
3[entryPoints]
4 [entryPoints.dashboard]
5 address = ":8080"
6 [entryPoints.dashboard.auth]
7 [entryPoints.dashboard.auth.basic]
8 users = ["admin:your_encrypted_password"]
9 [entryPoints.http]
10 address = ":80"
11 [entryPoints.http.redirect]
12 entryPoint = "https"
13 [entryPoints.https]
14 address = ":443"
15 [entryPoints.https.tls]
16
17[api]
18entrypoint="dashboard"
19
20[acme]
21email = "myemail@gmail.com"
22storage = "acme.json"
23entryPoint = "https"
24onHostRule = true
25 [acme.dnsChallenge]
26 provider = "lightsail"
27
28[docker]
29domain = "mydomain.com"
30watch = true
31network = "proxy"
32
33version: '3'
34services:
35 traefik:
36 image: traefik:1.7.6-alpine
37 ports:
38 - 80:80
39 - 443:443
40 networks:
41 - proxy
42 environment:
43 AWS_ACCESS_KEY_ID: accesskey
44 AWS_SECRET_ACCESS_KEY: secretkey
45 DNS_ZONE: dnszone
46 volumes:
47 - /var/run/docker.sock:/var/run/docker.sock
48 - ./config/traefik.toml:/traefik.toml
49 - ./config/acme.json:/acme.json
50 labels:
51 - "traefik.frontend.rule=Host:monitor.mydomain.com"
52 - "traefik.port=8080"
53 container_name: traefik
54 restart: always
55
56networks:
57 proxy:
58 external: true
59 internal:
60 external: false