traefik: fix config, whoami: add
This commit is contained in:
parent
afd3f9b300
commit
86b2368572
|
@ -769,8 +769,15 @@ services:
|
||||||
- --entrypoints.https.address=:443
|
- --entrypoints.https.address=:443
|
||||||
- --certificatesresolvers.myresolver.acme.email=${EMAIL_ADMIN}
|
- --certificatesresolvers.myresolver.acme.email=${EMAIL_ADMIN}
|
||||||
- --certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json
|
- --certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json
|
||||||
|
- --certificatesresolvers.myresolver.acme.dnsChallenge=true
|
||||||
- --certificatesresolvers.myresolver.acme.dnsChallenge.provider=ovh
|
- --certificatesresolvers.myresolver.acme.dnsChallenge.provider=ovh
|
||||||
|
- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
|
||||||
- --configFile=/etc/traefik/traefik.toml
|
- --configFile=/etc/traefik/traefik.toml
|
||||||
|
environment:
|
||||||
|
- "OVH_ENDPOINT=ovh-eu"
|
||||||
|
- "OVH_APPLICATION_KEY=f7255cb22f72787c"
|
||||||
|
- "OVH_APPLICATION_SECRET=3a040d8113a213b9613b3877ce4352ad"
|
||||||
|
- "OVH_CONSUMER_KEY=a0a9e8004bb6fe251654cc744c55d239"
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
|
@ -781,20 +788,29 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- public
|
- public
|
||||||
|
|
||||||
ghost:
|
# ghost:
|
||||||
image: "ghost:latest"
|
# image: "ghost:latest"
|
||||||
container_name: ghost
|
# container_name: ghost
|
||||||
environment:
|
# environment:
|
||||||
- url=http://blog.kucharczyk.xyz
|
# - 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:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.ghost.rule=Host(`blog.kucharczyk.xyz`)"
|
- "traefik.http.routers.whoami.rule=Host(`whoami.kucharczyk.xyz`)"
|
||||||
- "traefik.http.routers.ghost.entrypoints=https"
|
- "traefik.http.routers.whoami.entrypoints=https"
|
||||||
- "traefik.http.routers.ghost.tls.certresolver=myresolver"
|
- "traefik.http.routers.whoami.tls.certresolver=myresolver"
|
||||||
volumes:
|
|
||||||
- ${DOCKER_STORAGE_PATH}/ghost/content:/var/lib/ghost/content
|
|
||||||
networks:
|
|
||||||
- public
|
|
||||||
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
|
Loading…
Reference in New Issue