-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwith-letsencrypt.yml
27 lines (25 loc) · 1.18 KB
/
with-letsencrypt.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
version: '3.5'
services:
traefik:
command:
- "--api.insecure=false"
- "--certificatesresolvers.mytlschallenge.acme.tlschallenge=true"
# - "--certificatesresolvers.mytlschallenge.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.mytlschallenge.acme.email=${CERT_EMAIL}"
- "--certificatesresolvers.mytlschallenge.acme.storage=/letsencrypt/acme.json"
# because f***ing docker-compose doesn't merge the 'command' section
# - "--log.level=DEBUG"
- "--providers.docker=true"
- "--global.sendAnonymousUsage=false"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--entrypoints.gitea-ssh.address=:22"
- "--metrics.influxdb=${MON_TRAEFIK-false}"
- "--metrics.influxdb.address=http://172.20.0.1:8186" # TODO change to host.docker.internal when https://github.com/docker/for-linux/issues/264 is solved
- "--metrics.influxdb.protocol=http"
volumes:
- "./letsencrypt:/letsencrypt"
transmission:
labels:
- "traefik.http.routers.transmission.tls.certresolver=mytlschallenge"