Skip to content

Instantly share code, notes, and snippets.

@diogopms
Last active June 9, 2020 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diogopms/cea34d92ed3375e808bfa7c6411eb7d2 to your computer and use it in GitHub Desktop.
Save diogopms/cea34d92ed3375e808bfa7c6411eb7d2 to your computer and use it in GitHub Desktop.
Traefik ptg - docker
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
## 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