Skip to content

Instantly share code, notes, and snippets.

@IosifZ
Last active January 28, 2024 13:52
Show Gist options
  • Save IosifZ/f85ce274e02692bea100aa0f75e422e9 to your computer and use it in GitHub Desktop.
Save IosifZ/f85ce274e02692bea100aa0f75e422e9 to your computer and use it in GitHub Desktop.
version: '3.7'
services:
bazarr:
image: 'linuxserver/bazarr:latest'
container_name: bazarr
hostname: bazarr
volumes:
- '.\bazarr\config:/config'
ports:
- '6767:6767'
environment:
- TZ=Europe/Bucharest
- com.ouroboros.enable=true
restart: unless-stopped
env_file:
- .env
labels:
# - traefik.frontend.passHostHeader=true
# - traefik.port=6767
- "traefik.enable=true"
# - "traefik.http.routers.bazarr.entrypoints=web"
# - "traefik.http.routers.bazarr.rule=Host(`bazarr.DOMAIN.com`)"
- "traefik.http.routers.bazarr_https.entrypoints=web-secure"
- "traefik.http.routers.bazarr_https.rule=Host(`bazarr.DOMAIN.com`)"
- "traefik.http.routers.bazarr_https.tls=true"
- "traefik.http.routers.bazarr_https.tls.certresolver=basic"
- "traefik.http.routers.bazarr_https.tls.domains[0].main=DOMAIN.com"
- "traefik.http.routers.bazarr_https.tls.domains[0].sans=*.DOMAIN.com"
- "traefik.http.services.bazarr.loadbalancer.server.port=6767"
traefik_2.0.1:
image: 'traefik:2.0'
container_name: traefik_2.0
hostname: traefik_2.0
ports:
- '443:443'
- '80:80'
- '8080:8080'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
# - '.\traefik_2.0.1\traefik.yml:/etc/traefik/traefik.yml'
env_file:
- .env
restart: unless-stopped
domainname: '${ZONE}'
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.entrypoints=web"
- "traefik.http.routers.traefik.rule=Host(`traefik.localhost`)"
- "traefik.http.routers.traefik_https.entrypoints=web-secure"
- "traefik.http.routers.traefik_https.rule=Host(`traefik.localhost`)"
- "traefik.http.routers.traefik_https.tls=true"
- "traefik.http.routers.traefik_https.tls.certresolver=basic"
# - "traefik.http.routers.traefik_https.service=api@internal"
- "traefik.http.routers.traefik_https.tls.domains[0].main=DOMAIN.com"
- "traefik.http.routers.traefik_https.tls.domains[0].sans=*.DOMAIN.com"
- "traefik.http.routers.traefik.middlewares=https_redirect"
- "traefik.http.middlewares.https_redirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.https_redirect.redirectscheme.permanent=true"
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
environment:
- 'CF_API_EMAIL=${EMAIL}'
- 'CF_API_KEY=${API_KEY}'
- com.ouroboros.enable=true
- TZ=Europe/Bucharest
command:
- '--log.level=DEBUG'
- '--log.format=json'
- '--global.checkNewVersion=true'
- '--global.sendAnonymousUsage=false'
- '--entryPoints.web.address=:80'
- '--entryPoints.web-secure.address=:443'
- '--api'
- '--api.debug'
- '--api.insecure'
- '--api.dashboard'
- '--ping'
- '--providers.docker.exposedByDefault=false'
- '--providers.docker.watch=true'
- '--providers.docker.swarmMode=false'
- '[email protected]'
- '--certificatesresolvers.basic.acme.storage=/acme.json'
- '--certificatesresolvers.basic.acme.dnschallenge=true'
# - '--certificatesresolvers.basic.acme.dnschallenge.provider=cloudflare'
# - '--certificatesresolvers.basic.acme.dnsChallenge.delayBeforeCheck=60'
# - '--certificatesresolvers.basic.acme.dnsChallenge.resolvers=1.1.1.1:53,8.8.8.8:53'
- '--certificatesResolvers.basic.acme.caServer=https://acme-staging-v02.api.letsencrypt.org/directory'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment