Last active
June 9, 2020 11:37
-
-
Save diogopms/cea34d92ed3375e808bfa7c6411eb7d2 to your computer and use it in GitHub Desktop.
Traefik ptg - docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
traefik: | |
restart: always | |
image: "traefik:latest" | |
container_name: "traefik" | |
hostname: "traefik" | |
ports: | |
- "80:80" | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock:ro" | |
- "./traefik.yml:/traefik.yml:ro" | |
networks: | |
default: | |
external: | |
name: home |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## STATIC CONFIGURATION | |
log: | |
level: INFO | |
api: | |
insecure: false | |
dashboard: false | |
entryPoints: | |
web: | |
address: ":80" | |
providers: | |
docker: | |
endpoint: "unix:///var/run/docker.sock" | |
exposedByDefault: false | |
file: | |
filename: "traefik.yml" | |
## DYNAMIC CONFIGURATION | |
http: | |
routers: | |
services: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment