-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.traefik.yml
45 lines (42 loc) · 1.44 KB
/
docker-compose.traefik.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
version: '3.7'
x-logging: &default-logging
driver: json-file
options:
max-size: '10m'
max-file: '5'
networks:
traefikpublic:
services:
traefik:
image: traefik:v2.4
logging: *default-logging
container_name: 'traefik'
restart: always
command:
- '--certificatesresolvers.myresolver.acme.httpchallenge=true'
- '--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=http'
- '--certificatesresolvers.myresolver.acme.email=afisha.peredelano@proton.me'
- '--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json'
- '--providers.docker=true'
- '--providers.docker.network=ows-events_test_traefikpublic'
- '--providers.docker.endpoint=unix:///var/run/docker.sock'
- '--providers.docker.exposedbydefault=false'
- '--entrypoints.http.address=:80'
- '--entrypoints.https.address=:443'
- '--accesslog=true'
labels:
- 'traefik.enable=true'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- './letsencrypt:/letsencrypt'
ports:
- mode: host
protocol: tcp
published: 80
target: 80
- mode: host
protocol: tcp
published: 443
target: 443
networks:
- traefikpublic