Update docker-compose

x-function must be placed outside of service block to be valid
This commit is contained in:
2022-08-21 22:14:46 -05:00
parent c426222053
commit 530945d07e

View File

@@ -1,28 +1,28 @@
--- ---
version: '2' version: '3.4'
x-function: &function
networks:
- traefik_proxy1
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik_proxy1"
- "traefik.frontend.headers.SSLRedirect=true"
- "traefik.frontend.headers.STSSeconds=315360000"
- "traefik.frontend.headers.browserXSSFilter=true"
- "traefik.frontend.headers.contentTypeNosniff=true"
- "traefik.frontend.headers.forceSTSHeader=true"
- "traefik.frontend.headers.SSLHost=example.com"
- "traefik.frontend.headers.STSIncludeSubdomains=true"
- "traefik.frontend.headers.STSPreload=true"
- "traefik.frontend.headers.frameDeny=true"
restart: always
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
# Media Server # Media Server
services: services:
#Grabber, manage TV shows #Grabber, manage TV shows
x-function: &function
networks:
- traefik_proxy1
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik_proxy1"
- "traefik.frontend.headers.SSLRedirect=true"
- "traefik.frontend.headers.STSSeconds=315360000"
- "traefik.frontend.headers.browserXSSFilter=true"
- "traefik.frontend.headers.contentTypeNosniff=true"
- "traefik.frontend.headers.forceSTSHeader=true"
- "traefik.frontend.headers.SSLHost=example.com"
- "traefik.frontend.headers.STSIncludeSubdomains=true"
- "traefik.frontend.headers.STSPreload=true"
- "traefik.frontend.headers.frameDeny=true"
restart: always
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
sonarr: sonarr:
<<: *function <<: *function