forked from anandslab/docker-traefik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-t1-vpn.yml
executable file
·51 lines (47 loc) · 2.05 KB
/
docker-compose-t1-vpn.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: "3.7"
# DOCKER TRAEFIK 1 IS NO LONGER BEING MAINTAINED. CHECK INSTRUCTIONS FOR DOCKER TRAEFIK V2 SETUP.
# GLOBAL NOTES
# customFrameOptionsValue overrides traefik.frontend.headers.frameDeny="true"
########################### SERVICES
services:
############################# FRONTENDS
# qBittorrent - Torrent downloader
# Needs trailing / if using PathPrefixStrip
qbittorrent:
image: linuxserver/qbittorrent
container_name: qbittorrent
restart: always
network_mode: container:transmission-vpn
volumes:
- ${USERDIR}/docker/qbittorrent:/config
- ${USERDIR}/Downloads:/downloads
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TZ}
UMASK_SET: 002
WEBUI_PORT: 8168
labels:
traefik.enable: "true"
traefik.backend: qbittorrent
traefik.protocol: http
traefik.port: 8168
traefik.frontend.rule: Host:qbit.${DOMAINNAME}
# traefik.frontend.rule: Host:${DOMAINNAME}; PathPrefix: /qbittorrent
traefik.frontend.headers.SSLHost: qbit.${DOMAINNAME}
traefik.docker.network: t1_proxy
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
# traefik.frontend.headers.frameDeny: "true" #customFrameOptionsValue overrides this
traefik.frontend.headers.customFrameOptionsValue: "allow-from https:${DOMAINNAME}"
traefik.frontend.auth.forward.address: "http://oauth:4181"
traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
traefik.frontend.auth.forward.trustForwardHeader: "true"