-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (54 loc) · 2.06 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
version: '3.3'
volumes:
traefik:
services:
traefik:
image: traefik:latest
ports:
- 80:80
- 443:443
command:
- --log.level=ERROR
- --api.dashboard=true
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --entryPoints.web.address=:80
- --entrypoints.web-secure.address=:443
- --entryPoints.goerli.address=:30303
- --certificatesresolvers.mytlschallenge.acme.dnschallenge.provider=cloudflare
- --certificatesresolvers.mytlschallenge.acme.dnschallenge.delaybeforecheck=0
- --certificatesresolvers.mytlschallenge.acme.tlschallenge=true
- --certificatesresolvers.mytlschallenge.acme.caserver=https://acme-v02.api.letsencrypt.org/directory
- --certificatesresolvers.mytlschallenge.acme.email=${TECH_ADMIN_MAIL}
- --certificatesresolvers.mytlschallenge.acme.storage=/etc/traefik/acme.json
- --metrics.prometheus=true
- --metrics.influxdb=true
- --metrics.influxdb.protocol=http
- --metrics.influxdb.address=influxdb:8086
- --metrics.influxdb.database=traefik
- --metrics.influxdb.username=${INFLUXDB_ADMIN_USER}
- --metrics.influxdb.password=${INFLUXDB_ADMIN_PASSWORD}
volumes:
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
- type: volume
source: traefik
target: /etc/traefik
environment:
- CF_API_EMAIL=${CF_API_EMAIL}
- CF_API_KEY=${CF_API_KEY}
restart: always
labels:
- traefik.enable=true
- traefik.http.routers.traefik.tls=true
- traefik.http.routers.traefik.entrypoints=web-secure
- traefik.http.routers.traefik.tls.certresolver=mytlschallenge
- traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN}`)
- traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)
- traefik.http.routers.http-catchall.entrypoints=web
- traefik.http.routers.http-catchall.middlewares=redirect-to-https
- traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https
- traefik.http.routers.traefik.service=api@internal
- traefik.http.routers.traefik.middlewares=traefik-auth
- traefik.http.middlewares.traefik-auth.basicauth.users=${TRAEFIK_PW}