From 86b23685726e2f553e48c2b904c8fd0f124f9894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Tue, 26 Sep 2023 15:15:08 +0200 Subject: [PATCH] traefik: fix config, whoami: add --- docker-compose.yml | 40 ++++++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9c98c0d..0726a79 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -769,8 +769,15 @@ services: - --entrypoints.https.address=:443 - --certificatesresolvers.myresolver.acme.email=${EMAIL_ADMIN} - --certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json + - --certificatesresolvers.myresolver.acme.dnsChallenge=true - --certificatesresolvers.myresolver.acme.dnsChallenge.provider=ovh + - "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory" - --configFile=/etc/traefik/traefik.toml + environment: + - "OVH_ENDPOINT=ovh-eu" + - "OVH_APPLICATION_KEY=f7255cb22f72787c" + - "OVH_APPLICATION_SECRET=3a040d8113a213b9613b3877ce4352ad" + - "OVH_CONSUMER_KEY=a0a9e8004bb6fe251654cc744c55d239" ports: - "80:80" - "443:443" @@ -781,20 +788,29 @@ services: networks: - public - ghost: - image: "ghost:latest" - container_name: ghost - environment: - - url=http://blog.kucharczyk.xyz + # ghost: + # image: "ghost:latest" + # container_name: ghost + # environment: + # - url=http://blog.kucharczyk.xyz + # labels: + # - "traefik.enable=true" + # - "traefik.http.routers.ghost.rule=Host(`blog.kucharczyk.xyz`)" + # - "traefik.http.routers.ghost.entrypoints=https" + # - "traefik.http.routers.ghost.tls.certresolver=myresolver" + # volumes: + # - ${DOCKER_STORAGE_PATH}/ghost/content:/var/lib/ghost/content + # networks: + # - public + + whoami: + image: traefik/whoami + container_name: simple-service labels: - "traefik.enable=true" - - "traefik.http.routers.ghost.rule=Host(`blog.kucharczyk.xyz`)" - - "traefik.http.routers.ghost.entrypoints=https" - - "traefik.http.routers.ghost.tls.certresolver=myresolver" - volumes: - - ${DOCKER_STORAGE_PATH}/ghost/content:/var/lib/ghost/content - networks: - - public + - "traefik.http.routers.whoami.rule=Host(`whoami.kucharczyk.xyz`)" + - "traefik.http.routers.whoami.entrypoints=https" + - "traefik.http.routers.whoami.tls.certresolver=myresolver" networks: