-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
67 lines (54 loc) · 2.08 KB
/
docker-compose.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: "3.7"
services:
traefik:
image: "traefik:v2.2"
restart: unless-stopped
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.http.address=:80"
- "--entrypoints.https.address=:443"
- "--entrypoints.http-internal.address=:8080"
- "--entrypoints.https-admin.address=:9443"
- "--global.checkNewVersion=false"
- "--global.sendAnonymousUsage=false"
- "--certificatesresolvers.myresolver.acme.httpchallenge=true"
- "--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=http"
- "--certificatesresolvers.myresolver.acme.email=nicolas@barna.be"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
- "--api.dashboard=true"
- "--log.filePath=/var/log/traefik.log"
- "--log.level=DEBUG"
- "--accesslog=true"
- "--accesslog.filepath=/var/log/access.log"
- "--accesslog.bufferingsize=100"
#- "--providers.docker.constraints=Label(`traefik.constraint-label`,`spip`)"
ports:
- "127.0.0.1:80:80"
- "443:443"
- "127.0.0.1:8080:8080"
- "9443:9443"
volumes:
- ./htpassword:/etc/traefik/htpasswd/traefik:ro
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- ./logs/:/var/log/
- ./certs:/certs
- "./letsencrypt:/letsencrypt"
networks:
traefik:
aliases:
- "udata.datahub"
- "queueui.datahub"
- "datahub-ecole.recette.tech"
labels:
- "traefik.enable=true"
#- "traefik.constraint-label=spip"
- "traefik.http.routers.api.rule=Host(`traefik.${DOMAIN_NAME:-recette.tech}`)"
- "traefik.http.routers.api.service=api@internal"
- "traefik.http.routers.api.entrypoints=https-admin"
- "traefik.http.routers.api.tls.certresolver=myresolver"
- "traefik.http.routers.api.middlewares=auth-traefik"
- "traefik.http.middlewares.auth-traefik.basicauth.usersfile=/etc/traefik/htpasswd/traefik"
- "traefik.docker.network=${COMPOSE_PROJECT_NAME}_traefik"
networks:
traefik: