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 083c611 commit cb382ff
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 22 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

/.git
/.github
/.res
/examples
/.editorconfig
/.gitattributes
Expand Down
File renamed without changes
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p align="center"><a href="https://github.com/anonaddy/docker" target="_blank"><img height="128" src="https://raw.githubusercontent.com/anonaddy/docker/master/.res/docker-anonaddy.jpg"></a></p>
<p align="center"><a href="https://github.com/anonaddy/docker" target="_blank"><img height="128" src="https://raw.githubusercontent.com/anonaddy/docker/master/.github/docker-anonaddy.jpg"></a></p>

<p align="center">
<a href="https://hub.docker.com/r/anonaddy/anonaddy/tags?page=1&ordering=last_updated"><img src="https://img.shields.io/github/v/tag/anonaddy/docker?label=version&style=flat-square" alt="Latest Version"></a>
Expand All @@ -11,7 +11,7 @@

## About

🐳 [AnonAddy](https://anonaddy.com/) Docker image based on Alpine Linux.<br />
[AnonAddy](https://anonaddy.com/) 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
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,27 @@ version: "3.5"

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=true"
- "--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 @@ -63,9 +66,12 @@ services:
- "./data:/data"
labels:
- "traefik.enable=true"
- "traefik.backend=anonaddy"
- "traefik.port=8000"
- "traefik.frontend.rule=Host:anonaddy.example.com"
- "traefik.http.routers.anonaddy.entrypoints=https"
- "traefik.http.routers.anonaddy.rule=Host(`anonaddy.example.com`)"
- "traefik.http.routers.anonaddy.tls=true"
- "traefik.http.routers.anonaddy.tls.certresolver=letsencrypt"
- "traefik.http.routers.anonaddy.tls.domains[0].main=anonaddy.example.com"
- "traefik.http.services.anonaddy.loadbalancer.server.port=8000"
env_file:
- "./anonaddy.env"
environment:
Expand Down

0 comments on commit cb382ff

Please sign in to comment.