Compare commits
2 Commits
29da8bd6a4
...
afd3f9b300
Author | SHA1 | Date |
---|---|---|
Lukáš Kucharczyk | afd3f9b300 | |
Lukáš Kucharczyk | a10ed91b25 |
1
.env
1
.env
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue