basic recipe

This commit is contained in:
Ammar Hussein 2024-12-02 11:45:27 -08:00
parent f78247d165
commit fa248ea139
2 changed files with 23 additions and 12 deletions

View File

@ -6,3 +6,6 @@ DOMAIN=sonarr.example.com
#EXTRA_DOMAINS=', `www.sonarr.example.com`'
LETS_ENCRYPT_ENV=production
# Volume name for qbit app (qbit needs to be deployed first)
qbit_downloads_volume=<qbit_app>_qbit_downloads

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
app:
image: nginx:1.20.0
image: lscr.io/linuxserver/sonarr:4.0.11.2680-ls260
networks:
- proxy
deploy:
@ -11,22 +11,30 @@ services:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8989"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
## Redirect from EXTRA_DOMAINS to DOMAIN
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
# Redirect from EXTRA_DOMAINS to DOMAIN
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "coop-cloud.${STACK_NAME}.version="
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
volumes:
- sonarr_config:/config
- sonarr_tv:/tv
- sonarr_downloads:/downloads
environment:
- PUID=1000
- PGID=1000
networks:
proxy:
external: true
volumes:
sonarr_config:
sonarr_tv:
sonarr_downloads:
external:
name: ${qbit_downloads_volume}