-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-proxy.yml
37 lines (33 loc) · 1.05 KB
/
docker-compose-proxy.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
version: '3.3'
services:
traefik:
restart: unless-stopped
image: traefik:v3.1
command:
- --api.insecure=false
- --log.level=DEBUG
- --providers.docker=true
- --providers.docker.exposedByDefault=false
- --providers.docker.network=web
- --accesslog=true
- --entrypoints.web.address=:80
- --entrypoints.web.http.redirections.entrypoint.to=websecure
- --entryPoints.web.http.redirections.entrypoint.scheme=https
- --entrypoints.websecure.address=:443
- --entrypoints.websecure.asDefault=true
- --entrypoints.websecure.http.tls.certresolver=myresolver
- --certificatesresolvers.myresolver.acme.tlschallenge=true
- --certificatesresolvers.myresolver.acme.email=office@btree.at
- --certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json
ports:
- "80:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./letsencrypt:/letsencrypt"
networks:
- web
logging:
driver: 'local'
networks:
web: