Skip to content

Commit

Permalink
Traefik v2
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Oct 14, 2020
1 parent 029beca commit 380f01a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 23 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Expand Up @@ -4,7 +4,6 @@

/.git
/.github
/.res
/examples
/.editorconfig
/.gitattributes
Expand Down
File renamed without changes
5 changes: 2 additions & 3 deletions README.md
@@ -1,18 +1,17 @@
<p align="center"><a href="https://github.com/crazy-max/docker-qbittorrent" target="_blank"><img height="128" src=".res/docker-qbittorrent.jpg"></a></p>
<p align="center"><a href="https://github.com/crazy-max/docker-qbittorrent" target="_blank"><img height="128" src=".github/docker-qbittorrent.jpg"></a></p>

<p align="center">
<a href="https://hub.docker.com/r/crazymax/qbittorrent/tags?page=1&ordering=last_updated"><img src="https://img.shields.io/github/v/tag/crazy-max/docker-qbittorrent?label=version&style=flat-square" alt="Latest Version"></a>
<a href="https://github.com/crazy-max/docker-qbittorrent/actions?workflow=build"><img src="https://img.shields.io/github/workflow/status/crazy-max/docker-qbittorrent/build?label=build&logo=github&style=flat-square" alt="Build Status"></a>
<a href="https://hub.docker.com/r/crazymax/qbittorrent/"><img src="https://img.shields.io/docker/stars/crazymax/qbittorrent.svg?style=flat-square&logo=docker" alt="Docker Stars"></a>
<a href="https://hub.docker.com/r/crazymax/qbittorrent/"><img src="https://img.shields.io/docker/pulls/crazymax/qbittorrent.svg?style=flat-square&logo=docker" alt="Docker Pulls"></a>
<a href="https://www.codacy.com/app/crazy-max/docker-qbittorrent"><img src="https://img.shields.io/codacy/grade/4fe3d474010444e8a7c17904e472704f.svg?style=flat-square" alt="Code Quality"></a>
<br /><a href="https://github.com/sponsors/crazy-max"><img src="https://img.shields.io/badge/sponsor-crazy--max-181717.svg?logo=github&style=flat-square" alt="Become a sponsor"></a>
<a href="https://www.paypal.me/crazyws"><img src="https://img.shields.io/badge/donate-paypal-00457c.svg?logo=paypal&style=flat-square" alt="Donate Paypal"></a>
</p>

## About

🐳 [qBittorrent](https://www.qbittorrent.org/) Docker image based on Alpine Linux.<br />
[qBittorrent](https://www.qbittorrent.org/) Docker image based on Alpine Linux.<br />
If you are interested, [check out](https://hub.docker.com/r/crazymax/) my other Docker images!

💡 Want to be notified of new releases? Check out 🔔 [Diun (Docker Image Update Notifier)](https://github.com/crazy-max/diun) project!
Expand Down
44 changes: 25 additions & 19 deletions examples/traefik/docker-compose.yml
Expand Up @@ -2,24 +2,27 @@ version: "3.2"

services:
traefik:
image: traefik:1.7-alpine
image: traefik:2.3
container_name: traefik
command:
- "--logLevel=INFO"
- "--defaultentrypoints=http,https"
- "--entryPoints=Name:http Address::80 Redirect.EntryPoint:https"
- "--entryPoints=Name:https Address::443 TLS"
- "--docker"
- "--docker.exposedbydefault=false"
- "--docker.domain=example.com"
- "--acme=false"
- "--acme.acmelogging=true"
- "--acme.email=webmaster@example.com"
- "--acme.storage=acme.json"
- "--acme.entryPoint=https"
- "--acme.onhostrule=true"
- "--acme.httpchallenge=true"
- "--acme.httpchallenge.entrypoint=http"
- "--global.checknewversion=false"
- "--global.sendanonymoususage=false"
- "--log=true"
- "--log.level=INFO"
- "--entrypoints.http=true"
- "--entrypoints.http.address=:80"
- "--entrypoints.http.http.redirections.entrypoint.to=https"
- "--entrypoints.http.http.redirections.entrypoint.scheme=https"
- "--entrypoints.https=true"
- "--entrypoints.https.address=:443"
- "--certificatesresolvers.letsencrypt"
- "--certificatesresolvers.letsencrypt.acme.storage=acme.json"
- "--certificatesresolvers.letsencrypt.acme.email=webmaster@example.com"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=http"
- "--providers.docker"
- "--providers.docker.watch=true"
- "--providers.docker.exposedbydefault=false"
ports:
- target: 80
published: 80
Expand Down Expand Up @@ -50,9 +53,12 @@ services:
- "ALT_WEBUI=false"
labels:
- "traefik.enable=true"
- "traefik.backend=qbittorrent"
- "traefik.port=8080"
- "traefik.frontend.rule=Host:qbittorrent.example.com"
- "traefik.http.routers.qbittorrent.entrypoints=https"
- "traefik.http.routers.qbittorrent.rule=Host(`qbittorrent.example.com`)"
- "traefik.http.routers.qbittorrent.tls=true"
- "traefik.http.routers.qbittorrent.tls.certresolver=letsencrypt"
- "traefik.http.routers.qbittorrent.tls.domains[0].main=qbittorrent.example.com"
- "traefik.http.services.qbittorrent.loadbalancer.server.port=8000"
ulimits:
nproc: 65535
nofile:
Expand Down

0 comments on commit 380f01a

Please sign in to comment.