From f0a6f40625cc6e417b64d7cb61f25270d96ec38a Mon Sep 17 00:00:00 2001 From: Adolfo Delorenzo Date: Tue, 31 Jan 2023 16:25:34 +0000 Subject: [PATCH] Add 'whoamissl.yaml' --- whoamissl.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 whoamissl.yaml diff --git a/whoamissl.yaml b/whoamissl.yaml new file mode 100644 index 0000000..bc565d9 --- /dev/null +++ b/whoamissl.yaml @@ -0,0 +1,32 @@ +version: "3.3" + +services: + + traefik: + image: "traefik:v2.9" + container_name: "traefik" + command: + #- "--log.level=DEBUG" + - "--api.insecure=true" + - "--providers.docker=true" + - "--providers.docker.exposedbydefault=false" + - "--entrypoints.websecure.address=:443" + - "--certificatesresolvers.myresolver.acme.tlschallenge=true" + #- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory" + - "--certificatesresolvers.myresolver.acme.email=adolfo.delorenzo@portainer.io" + - "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json" + ports: + - "443:443" + - "8080:8080" + volumes: + - "./letsencrypt:/letsencrypt" + - "/var/run/docker.sock:/var/run/docker.sock:ro" + + whoami: + image: "traefik/whoami" + container_name: "simple-service" + labels: + - "traefik.enable=true" + - "traefik.http.routers.whoami.rule=Host(`whoami.the-edge.cloud`)" + - "traefik.http.routers.whoami.entrypoints=websecure" + - "traefik.http.routers.whoami.tls.certresolver=myresolver" \ No newline at end of file