-
Notifications
You must be signed in to change notification settings - Fork 229
Expand file tree
/
Copy pathtraefik.yml
More file actions
28 lines (26 loc) · 1005 Bytes
/
traefik.yml
File metadata and controls
28 lines (26 loc) · 1005 Bytes
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
---
volumes:
traefik: { driver: local }
services:
traefik:
image: docker.io/traefik:${TRAEFIK_RELEASE:-v2.9.8}
restart: always
labels:
DEPRECATED_COMPOSE: "${DEPRECATED_COMPOSE_ACK:?This compose file is deprecated, please migrate to https://github.com/RocketChat/rocketchat-compose}"
command:
- --api.insecure=false
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --entrypoints.web.address=:80
- --entrypoints.web.http.redirections.entryPoint.to=https
- --entrypoints.web.http.redirections.entryPoint.scheme=https
- --entrypoints.https.address=:443
- --certificatesresolvers.le.acme.tlschallenge=true
- --certificatesresolvers.le.acme.email=${LETSENCRYPT_EMAIL?need email for cert expiry notifications}
- --certificatesresolvers.le.acme.storage=/letsencrypt/acme.json
ports:
- 80:80
- 443:443
volumes:
- traefik:/letsencrypt:rw
- /run/docker.sock:/var/run/docker.sock:ro