1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

add traefik

This commit is contained in:
kev 2021-03-16 19:44:52 +08:00
parent af944fcab1
commit 0f76568a03
3 changed files with 30 additions and 1 deletions

View File

@ -252,7 +252,6 @@ A collection of delicious docker recipes.
- [x] stunnel-arm
- [x] tinyproxy
- [x] tor
- [x] traefik-arm
## VPN
@ -392,6 +391,7 @@ A collection of delicious docker recipes.
- [x] jira
- [x] amancevice/superset
- [x] v2ray/official :cn:
- [x] traefik
- [x] mpromonet/v4l2rtspserver :camera:
- [x] centurylink/watchtower
- [x] anapsix/webdis

4
traefik/README.md Normal file
View File

@ -0,0 +1,4 @@
traefik
=======
https://doc.traefik.io/traefik/user-guides/docker-compose/acme-http/

View File

@ -0,0 +1,25 @@
version: "3.8"
services:
traefik:
image: "traefik:v2.4"
container_name: "traefik"
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.le.acme.httpchallenge=true"
- "--certificatesresolvers.le.acme.httpchallenge.entrypoint=web"
- "--certificatesresolvers.le.acme.email=username@gmail.com"
- "--certificatesresolvers.le.acme.storage=/etc/traefik/acme.json"
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- ./data:/etc/traefik
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped