From 0f76568a0354863254da2bcab03d3afebc101821 Mon Sep 17 00:00:00 2001 From: kev Date: Tue, 16 Mar 2021 19:44:52 +0800 Subject: [PATCH] add traefik --- README.md | 2 +- traefik/README.md | 4 ++++ traefik/docker-compose.yml | 25 +++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 traefik/README.md create mode 100644 traefik/docker-compose.yml diff --git a/README.md b/README.md index cff9512..8280441 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/traefik/README.md b/traefik/README.md new file mode 100644 index 0000000..326a5e8 --- /dev/null +++ b/traefik/README.md @@ -0,0 +1,4 @@ +traefik +======= + +https://doc.traefik.io/traefik/user-guides/docker-compose/acme-http/ diff --git a/traefik/docker-compose.yml b/traefik/docker-compose.yml new file mode 100644 index 0000000..a1c50a5 --- /dev/null +++ b/traefik/docker-compose.yml @@ -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