Skip to content

Instantly share code, notes, and snippets.

@bizley
Created September 19, 2019 16:51
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 bizley/d68579baad201e8efe989e99febf266c to your computer and use it in GitHub Desktop.
Save bizley/d68579baad201e8efe989e99febf266c to your computer and use it in GitHub Desktop.
Traefik
version: '3.7'
services:
reverse-proxy:
restart: always
networks:
- dev
container_name: traefik
image: traefik # The official Traefik docker image
command: --api --docker # Enables the web UI and tells Traefik to listen to docker
ports:
- "80:80" # The HTTP port
- "8080:8080" # The Web UI (enabled by --api)
volumes:
- /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
networks:
dev:
name: dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment