update to 2.4 + add commented options for swarm and accesslog

This commit is contained in:
Mauro Torrez 2021-03-09 10:05:16 -03:00
parent fcd65d0c27
commit ed9bc6cdad

View File

@ -10,15 +10,18 @@ version: "3.5"
services:
traefik:
container_name: traefik
image: traefik:v2.2
image: traefik:v2.4
restart: unless-stopped
command:
- --providers.docker
- --providers.docker.defaultrule=Host(`{{ trimPrefix `/` .Name }}.lndo.site`)
- --providers.docker.network=traefik
# - --providers.docker.swarmMode=true
- --api.dashboard=true
- --api.insecure=false
- --entryPoints.web.address=:80
# - --accesslog=true
# - --accesslog.format=json
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
ports: