traefik, ghost: add
This commit is contained in:
parent
29da8bd6a4
commit
a10ed91b25
|
@ -758,6 +758,44 @@ services:
|
|||
profiles:
|
||||
- base
|
||||
|
||||
traefik:
|
||||
image: "traefik:v2.5"
|
||||
container_name: traefik
|
||||
command:
|
||||
- --api.insecure=true
|
||||
- --providers.docker=true
|
||||
- --providers.docker.exposedbydefault=false
|
||||
- --entrypoints.http.address=:80
|
||||
- --entrypoints.https.address=:443
|
||||
- --certificatesresolvers.myresolver.acme.email=${EMAIL_ADMIN}
|
||||
- --certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json
|
||||
- --certificatesresolvers.myresolver.acme.dnsChallenge.provider=ovh
|
||||
- --configFile=/etc/traefik/traefik.toml
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ${DOCKER_STORAGE_PATH}/traefik/acme.json:/letsencrypt/acme.json
|
||||
- ${DOCKER_STORAGE_PATH}/traefik/traefik.toml:/etc/traefik/traefik.toml
|
||||
networks:
|
||||
- public
|
||||
|
||||
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
|
||||
|
||||
|
||||
networks:
|
||||
loki:
|
||||
|
|
Loading…
Reference in New Issue