Skip to content

Instantly share code, notes, and snippets.

@wingrime
Created November 21, 2019 11:32
Show Gist options
  • Save wingrime/07fee3c1cfd8602f9b9b168eface9185 to your computer and use it in GitHub Desktop.
Save wingrime/07fee3c1cfd8602f9b9b168eface9185 to your computer and use it in GitHub Desktop.
traefik:
image: traefik:latest
command: --docker
ports:
- "80:80" 6
- "443:443"
labels:
- "traefik.enable=true"
- "traefik.backend=dashboard"
- "traefik.frontend.rule=Host:traefik-gitea.mydomain.com"
- "traefik.port=8080"
networks:
- gitea
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /data/volumes/traefik/traefik.toml:/traefik.toml 7
- /data/volumes/traefik/acme.json:/acme.json 7
container_name: traefik
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment