This commit is contained in:
parent
34fa9c794e
commit
d7efdbb0ae
|
|
@ -10,30 +10,10 @@ services:
|
||||||
- "443:443"
|
- "443:443"
|
||||||
- "8080:8080" # Dashboard Traefik (remover em produção se exposto)
|
- "8080:8080" # Dashboard Traefik (remover em produção se exposto)
|
||||||
command:
|
command:
|
||||||
- "--api.insecure=true"
|
- "--configFile=/etc/traefik/traefik.yml"
|
||||||
- "--api.dashboard=true"
|
|
||||||
- "--providers.docker=true"
|
|
||||||
- "--providers.docker.exposedbydefault=false"
|
|
||||||
- "--providers.file.filename=/etc/traefik/dynamic_conf.yml"
|
|
||||||
- "--providers.file.watch=true"
|
|
||||||
- "--entrypoints.web.address=:80"
|
|
||||||
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
|
|
||||||
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
|
|
||||||
- "--entrypoints.websecure.address=:443"
|
|
||||||
- "--certificatesresolvers.letsencrypt.acme.httpchallenge=true"
|
|
||||||
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web"
|
|
||||||
- "--certificatesresolvers.letsencrypt.acme.email=suporte@itguys.com.br"
|
|
||||||
- "--certificatesresolvers.letsencrypt.acme.storage=acme.json"
|
|
||||||
- "--log.format=json"
|
|
||||||
- "--log.level=INFO"
|
|
||||||
- "--accesslog=true"
|
|
||||||
- "--accesslog.format=json"
|
|
||||||
- "--metrics.prometheus=true"
|
|
||||||
- "--metrics.prometheus.buckets=0.1,0.3,1.2,5.0"
|
|
||||||
- "--metrics.prometheus.addEntryPointsLabels=true"
|
|
||||||
- "--metrics.prometheus.addServicesLabels=true"
|
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
- ./traefik.yml:/etc/traefik/traefik.yml:ro
|
||||||
- ./dynamic_conf.yml:/etc/traefik/dynamic_conf.yml:ro
|
- ./dynamic_conf.yml:/etc/traefik/dynamic_conf.yml:ro
|
||||||
- ./acme.json:/acme.json
|
- ./acme.json:/acme.json
|
||||||
networks:
|
networks:
|
||||||
|
|
|
||||||
|
|
@ -30,10 +30,16 @@ log:
|
||||||
accessLog:
|
accessLog:
|
||||||
format: json
|
format: json
|
||||||
|
|
||||||
|
metrics:
|
||||||
|
prometheus:
|
||||||
|
buckets: [0.1, 0.3, 1.2, 5.0]
|
||||||
|
addEntryPointsLabels: true
|
||||||
|
addServicesLabels: true
|
||||||
|
|
||||||
certificatesResolvers:
|
certificatesResolvers:
|
||||||
letsencrypt:
|
letsencrypt:
|
||||||
acme:
|
acme:
|
||||||
email: suporte@itguys.com.br
|
email: suporte@itguys.com.br
|
||||||
storage: acme.json
|
storage: /acme.json
|
||||||
httpChallenge:
|
httpChallenge:
|
||||||
entryPoint: web
|
entryPoint: web
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue