Created
September 19, 2019 16:51
-
-
Save bizley/d68579baad201e8efe989e99febf266c to your computer and use it in GitHub Desktop.
Traefik
This file contains hidden or 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: | |
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