This repository has been archived on 2022-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
docker-traefik/templates/docker-compose.j2

21 lines
524 B
Django/Jinja

version: '3'
networks:
web:
external: true
services:
reverse-proxy:
# The official v2 Traefik docker image
image: traefik:v2.5
# Enables the web UI and tells Traefik to listen to docker
command: --api.insecure=true --providers.docker
networks:
- web
ports:
# The HTTP port
- "80:80"
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock