Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~/docker-project
- - docker-compose.yml
- - /traefik/traefik.toml
- defaultEntryPoints = ["http", "https"]
- ################################################################
- # Web configuration backend
- ################################################################
- [web]
- address = ":8080"
- [web.auth.basic]
- # User: user | Password: password
- users = ["user:hashedpassword"]
- ################################################################
- # Entry-points configuration
- ################################################################
- [entryPoints]
- [entryPoints.http]
- address = ":80"
- [entryPoints.http.redirect]
- entryPoint = "https"
- [entryPoints.https]
- address = ":443"
- [entryPoints.https.tls]
- ################################################################
- # Docker configuration backend
- ################################################################
- [docker]
- domain = "mydomain.com"
- watch = true
- exposedbydefault = false
- ################################################################
- # Let's encrypt
- ################################################################
- [acme]
- email = "my-email@mail.com"
- storageFile = "/etc/traefik/acme.json"
- onDemand = false
- onHostRule = true
- entryPoint = "https"
- version: '2'
- services:
- traefik:
- restart: always
- image: traefik
- container_name: traefik
- ports:
- - '80:80'
- - '443:443'
- - '8080:8080'
- labels:
- - 'traefik.enable=true'
- - 'traefik.docker.network=dockerplatform_default'
- - 'traefik.port=8080'
- - 'traefik.frontend.rule=Host:traefik.mydomain.com'
- volumes:
- - /var/run/docker.sock:/var/run/docker.sock
- - ./traefik:/etc/traefik
- plex:
- image: linuxserver/plex
- container_name: plex
- environment:
- - VERSION=latest
- - PUID=1000
- - PGID=1000
- - TZ=TZ
- labels:
- - 'traefik.enable=true'
- - 'traefik.docker.network=dockerplatform_default'
- - 'traefik.port=9001'
- - 'traefik.frontend.rule=Host:plex.mydomain.com'
- ports:
- - '9001:32400'
- volumes:
- - 'plex:/config'
- - 'plex_transcode:/transcode'
- - '/home/downloader/Downloads:/data/'
- plexpy:
- image: linuxserver/plexpy
- container_name: plexpy
- environment:
- - PUID=1000
- - PGID=1000
- - TZ=TZ
- labels:
- - 'traefik.enable=true'
- - 'traefik.docker.network=dockerplatform_default'
- - 'traefik.port=9002'
- - 'traefik.frontend.rule=Host:plexpy.mydomain.com'
- ports:
- - '9002:8181'
- volumes:
- - 'plexpy:/config'
- transmission:
- image: linuxserver/transmission
- container_name: transmission
- environment:
- - PGID=1000
- - PUID=1000
- - TZ=TZ
- labels:
- - 'traefik.enable=true'
- - 'traefik.docker.network=dockerplatform_default'
- - 'traefik.port=9003'
- - 'traefik.frontend.rule=Host:bt.mydomain.com'
- ports:
- - '9003:9091'
- - '51413:51413'
- - '51413:51413/udp'
- volumes:
- - 'transmission:/config'
- - '/home/downloader/Downloads:/downloads'
- - '/home/downloader/Downloads:/watch'
- volumes:
- plex:
- driver: local
- plex_transcode:
- driver: local
- plexpy:
- driver: local
- transmission:
- driver: local
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement