1
0
Fork 0

Compare commits

..

2 Commits

Author SHA1 Message Date
Lukáš Kucharczyk afd3f9b300 env: add EMAIL_ADMIN 2023-09-26 15:01:31 +02:00
Lukáš Kucharczyk a10ed91b25 traefik, ghost: add 2023-09-26 15:01:17 +02:00
2 changed files with 40 additions and 1 deletions

1
.env
View File

@ -11,6 +11,7 @@ NZB_DOWNLOADS_PATH=${DOWNLOADS_PATH}/sabnzbd
TORRENTS_SEED_PATH=${STORAGE_PATH}/seed
DOCKER_STORAGE_PATH=/docker
PHOTOS_STORAGE_PATH=/srv/dev-disk-by-uuid-2d34f1a9-4284-4cad-ae9a-f1ef36244201/photos
EMAIL_ADMIN=lukas@kucharczyk.xyz
EMAIL_FROM=kucharczyk.lukas@gmail.com
EMAIL_HOST=smtp.gmail.com
EMAIL_PASSWORD=sebrubdsgkuptcjr

View File

@ -757,7 +757,45 @@ services:
restart: unless-stopped
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: