1
0
Fork 0

traefik: fix config, whoami: add

This commit is contained in:
Lukáš Kucharczyk 2023-09-26 15:15:08 +02:00
parent afd3f9b300
commit 86b2368572
1 changed files with 28 additions and 12 deletions

View File

@ -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: