fix exposition error
This commit is contained in:
parent
b46b368019
commit
6e71b7cb1b
2 changed files with 4 additions and 2 deletions
|
@ -16,7 +16,9 @@ services:
|
|||
expose:
|
||||
- 61208
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- traefik.http.routers.glances.rule=Host(${SITE})
|
||||
- traefik.http.routers.glances.entrypoints=web
|
||||
- traefik.http.services.glances.loadbalancer.server.port=61208
|
||||
|
||||
volumes:
|
||||
|
|
|
@ -5,9 +5,10 @@ services:
|
|||
container_name: traefik
|
||||
image: traefik:v2.2.1
|
||||
command:
|
||||
- --entrypoints.web.address=:80
|
||||
- --providers.docker=true
|
||||
- --providers.docker.exposedbydefault=false
|
||||
- --api.insecure # Don't do that in production
|
||||
- --entrypoints.web.address=:80
|
||||
ports:
|
||||
- 80:80
|
||||
- 8080:8080
|
||||
|
@ -16,4 +17,3 @@ services:
|
|||
restart: unless-stopped
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- /srv/hosting/traefik/logs:/logs
|
||||
|
|
Loading…
Add table
Reference in a new issue