-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose.traefik.defaults.yaml
36 lines (33 loc) · 1.23 KB
/
docker-compose.traefik.defaults.yaml
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
version: "3.7"
networks:
default:
external:
name: fritz_net
services:
traefik:
image: "traefik:v2.2"
container_name: "traefik"
command:
# fixme: comment out if do not want the traefik dashboard on port 8090
- "--api.insecure=true"
- "--metrics=true"
- "--metrics.prometheus=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=proxy"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.myresolver.acme.httpchallenge=true"
- "--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web"
#- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.myresolver.acme.email=private@caltech.edu"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
ports:
- "80:80"
- "443:443"
# fixme: traefik dashboard
- "8090:8080"
volumes:
# Create a letsencrypt dir within the folder where the docker-compose file is
- "./letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"