version: '3.7' services: traefik: container_name: traefik image: traefik:v2.9 command: - "--api.insecure=true" - "--providers.docker=true" - "--providers.docker.exposedbydefault=false" - "--providers.docker.network=external" - "--entrypoints.internal.address=:80" - "--entrypoints.internalsecure.address=:443" - "--entrypoints.internal.http.redirections.entryPoint.to=internalsecure" - "--entrypoints.internal.http.redirections.entryPoint.scheme=https" - "--entrypoints.internal.http.redirections.entryPoint.permanent=true" - "--certificatesresolvers.http.acme.httpchallenge=true" - "--certificatesresolvers.http.acme.httpchallenge.entrypoint=external" - "--certificatesresolvers.http.acme.email=acme@bhasher.com" - "--certificatesresolvers.http.acme.storage=acme.json" - "--entrypoints.external.address=:81" - "--entrypoints.externalsecure.address=:444" - "--entrypoints.external.http.redirections.entryPoint.to=externalsecure" - "--entrypoints.external.http.redirections.entryPoint.scheme=https" - "--entrypoints.external.http.redirections.entryPoint.permanent=true" #- "--log.level=DEBUG" - "--metrics.prometheus=true" environment: - TZ=Europe/Paris ports: - "80:80" - "443:443" - "81:81" - "444:444" #- "8080:8080" volumes: - /var/run/docker.sock:/var/run/docker.sock:ro - type: bind source: $DATA/traefik/acme.json target: /acme.json - type: bind source: $DATA/traefik/rules.toml target: /rules.toml restart: always portainer: container_name: portainer image: portainer/portainer-ce:latest #command: -H tcp://tasks.agent:9001 --tlsskipverify ports: - "9443:9443" volumes: - $DATA/portainer:/data:rw - /var/run/docker.sock:/var/run/docker.sock labels: - "traefik.enable=true" - "traefik.http.routers.portainer.rule=Host(`portainer.bxl.bhasher.com`)" - "traefik.http.routers.portainer.entrypoints=externalsecure,internalsecure" - "traefik.http.services.portainer.loadbalancer.server.port=9000" - "traefik.http.routers.portainer.tls=true" - "traefik.http.routers.portainer.tls.certresolver=http" restart: always matrix-synapse: container_name: matrix-synapse image: matrixdotorg/synapse:latest restart: unless-stopped environment: - SYNAPSE_SERVER_NAME=matrix.bhasher.com - SYNAPSE_REPORT_STATS=no volumes: - $DATA/matrix/synapse:/data:rw labels: - "traefik.enable=true" - "traefik.http.routers.matrix-synapse.rule=Host(`matrix.bhasher.com`)" - "traefik.http.routers.matrix-synapse.tls=true" - "traefik.http.routers.matrix-synapse.tls.certresolver=http" - "traefik.http.routers.matrix-synapse.entrypoints=internalsecure,externalsecure" - "traefik.http.services.matrix-synapse.loadbalancer.server.port=8008" wireguard: container_name: wireguard image: lscr.io/linuxserver/wireguard:latest restart: always volumes: - $DATA/wireguard:/config - /lib/modules:/lib/modules ports: - 51821:51820/udp environment: - TZ=Europe/Paris - SERVERURL=vpn.bhasher.com - SERVERPORT=51821 - PEERS=5 - PEERDNS=auto - INTERNAL_SUBNET=10.13.14.0 - ALLOWEDIPS=0.0.0.0/0 cap_add: - NET_ADMIN - SYS_MODULE sysctls: - net.ipv4.conf.all.src_valid_mark=1 matrix-riot: container_name: matrix-element image: ghcr.io/bubuntux/element-web restart: unless-stopped volumes: - ./config/riot/config.json:/etc/element-web/config.json:ro labels: - "traefik.enable=true" - "traefik.http.routers.matrix-riot.rule=Host(`element.bhasher.com`)" - "traefik.http.routers.matrix-riot.tls=true" - "traefik.http.routers.matrix-riot.tls.certresolver=http" - "traefik.http.routers.matrix-riot.entrypoints=internalsecure,externalsecure" - "traefik.http.services.matrix-riot.loadbalancer.server.port=80" prom_monitoring: container_name: prom_monitoring image: prom/prometheus:latest restart: unless-stopped labels: - "traefik.enable=true" - "traefik.http.routers.prom.rule=Host(`prometheus.bhasher.com`)" - "traefik.http.routers.prom.entrypoints=internalsecure" - "traefik.http.services.prom.loadbalancer.server.port=9090" - "traefik.http.routers.prom.tls=true" - "traefik.http.routers.prom.tls.certresolver=http" extra_hosts: - "host.docker.internal:host-gateway" volumes: - ./config/monitoring/prometheus.yaml:/etc/prometheus/prometheus.yml:ro - $DATA/monitoring/prometheus:/prometheus grafana: container_name: grafana image: grafana/grafana restart: unless-stopped labels: - "traefik.enable=true" - "traefik.http.routers.grafana.rule=Host(`grafana.bhasher.com`)" - "traefik.http.routers.grafana.entrypoints=internalsecure" - "traefik.http.services.grafana.loadbalancer.server.port=3000" - "traefik.http.routers.grafana.tls=true" - "traefik.http.routers.grafana.tls.certresolver=http" volumes: - $DATA/monitoring/grafana:/var/lib/grafana cadvisor: container_name: cadvisor image: gcr.io/cadvisor/cadvisor:v0.47.1 volumes: - /:/rootfs:ro - /var/run:/var/run:rw - /sys:/sys:ro - /var/lib/docker/:/var/lib/docker:ro restart: always node-exporter: container_name: node-exporter image: quay.io/prometheus/node-exporter:latest volumes: - /proc:/host/proc:ro - /sys:/host/sys:ro - /:/rootfs:ro - /:/host:ro,rslave command: - '--path.rootfs=/host' - '--path.procfs=/host/proc' - '--path.sysfs=/host/sys' - --collector.filesystem.ignored-mount-points - "^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)" restart: always jellyfin: image: linuxserver/jellyfin:latest volumes: - $DATA/mediaserver/jellyfin:/config - /mnt/movies/series:/data/tvshows - /mnt/movies/movies:/data/movies - /mnt/movies/musics:/data/musics environment: - TZ=Europe/Paris restart: unless-stopped labels: - "traefik.enable=true" - "traefik.http.routers.jellyfin.rule=Host(`jellyfin.bhasher.com`)" - "traefik.http.routers.jellyfin.entrypoints=internalsecure,externalsecure" - "traefik.http.services.jellyfin.loadbalancer.server.port=8096" - "traefik.http.routers.jellyfin.tls=true" - "traefik.http.routers.jellyfin.tls.certresolver=http" radarr: image: lscr.io/linuxserver/radarr:latest environment: - TZ=Europe/Paris volumes: - $DATA/mediaserver/radarr:/config - /mnt/movies/movies:/movies - /mnt/movies/tmp:/downloads restart: unless-stopped labels: - "traefik.enable=true" - "traefik.http.routers.radarr.rule=Host(`radarr.bhasher.com`)" - "traefik.http.services.radarr.loadbalancer.server.port=7878" - "traefik.http.routers.radarr.tls=true" - "traefik.http.routers.radarr.tls.certresolver=http" - "traefik.http.routers.radarr.entrypoints=internalsecure" sonarr: image: lscr.io/linuxserver/sonarr:latest environment: - PUID=1000 - PGID=1000 - TZ=Europe/Paris volumes: - $DATA/mediaserver/sonarr:/config - /mnt/movies/series:/tv - /mnt/movies/tmp:/downloads restart: unless-stopped labels: - "traefik.enable=true" - "traefik.http.routers.sonarr.rule=Host(`sonarr.bhasher.com`)" - "traefik.http.services.sonarr.loadbalancer.server.port=8989" - "traefik.http.routers.sonarr.tls=true" - "traefik.http.routers.sonarr.tls.certresolver=http" - "traefik.http.routers.sonarr.entrypoints=internalsecure" lidarr: image: lscr.io/linuxserver/lidarr:latest environment: - PUID=1000 - PGID=1000 - TZ=Europe/Paris volumes: - $DATA/mediaserver/lidarr:/config - /mnt/movies/musics:/music - /mnt/movies/tmp:/downloads restart: unless-stopped labels: - "traefik.enable=true" - "traefik.http.routers.lidarr.rule=Host(`lidarr.bhasher.com`)" - "traefik.http.services.lidarr.loadbalancer.server.port=8686" - "traefik.http.routers.lidarr.tls=true" - "traefik.http.routers.lidarr.tls.certresolver=http" - "traefik.http.routers.lidarr.entrypoints=internalsecure" transmission: image: lscr.io/linuxserver/transmission:latest environment: - PUID=1000 - PGID=1000 - TZ=Europe/Paris volumes: - $DATA/mediaserver/transmission:/config - /mnt/movies/tmp:/downloads - /mnt/movies/torrents:/watch ports: - 51413:51413/tcp - 51413:51413/udp restart: unless-stopped labels: - "traefik.enable=true" - "traefik.http.routers.transmission.rule=Host(`transmission.bhasher.com`)" - "traefik.http.services.transmission.loadbalancer.server.port=9091" - "traefik.http.routers.transmission.tls=true" - "traefik.http.routers.transmission.tls.certresolver=http" - "traefik.http.routers.transmission.entrypoints=internalsecure" jackett: image: lscr.io/linuxserver/jackett:latest environment: - PUID=1000 - PGID=1000 - TZ=Europe/Paris - AUTO_UPDATE=true volumes: - $DATA/mediaserver/jackett:/config - /mnt/movies/torrents:/downloads restart: unless-stopped labels: - "traefik.enable=true" - "traefik.http.routers.jackett.rule=Host(`jackett.bhasher.com`)" - "traefik.http.services.jackett.loadbalancer.server.port=9117" - "traefik.http.routers.jackett.tls=true" - "traefik.http.routers.jackett.tls.certresolver=http" - "traefik.http.routers.jackett.entrypoints=internalsecure" flaresolverr: image: ghcr.io/flaresolverr/flaresolverr:latest environment: - LOG_LEVEL=info - LOG_HTML=false - CAPTCHA_SOLVER=none - TZ=Europe/Paris restart: unless-stopped bazarr: image: lscr.io/linuxserver/bazarr environment: - TZ=Europe/Paris volumes: - $DATA/mediaserver/bazarr:/config - /mnt/movies/movies:/movies - /mnt/movies/series:/tv restart: unless-stopped labels: - "traefik.enable=true" - "traefik.http.routers.bazarr.rule=Host(`bazarr.bhasher.com`)" - "traefik.http.services.bazarr.loadbalancer.server.port=6767" - "traefik.http.routers.bazarr.tls=true" - "traefik.http.routers.bazarr.tls.certresolver=http" - "traefik.http.routers.bazarr.entrypoints=internalsecure"