38 lines
751 B
YAML
38 lines
751 B
YAML
services:
|
|
transmission:
|
|
container_name: transmission
|
|
privileged: true
|
|
hostname: transmission
|
|
build: ./build
|
|
image: transmission
|
|
environment:
|
|
- TZ=Europe/Paris
|
|
- SERVER=alsace
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- ./data:/var/lib/transmission-daemon/
|
|
- torrent:/home/torrent
|
|
restart: unless-stopped
|
|
networks:
|
|
br0:
|
|
ipv4_address: 192.168.1.2
|
|
ports:
|
|
- "192.168.0.1:9091:9091"
|
|
- 51413:51413
|
|
- 51413:51413/udp
|
|
|
|
volumes:
|
|
torrent:
|
|
driver_opts:
|
|
type: "nfs"
|
|
o: "addr=192.168.0.2,nolock,soft,nfsvers=4"
|
|
device: ":/Volume1/torrent"
|
|
|
|
networks:
|
|
br0:
|
|
driver: bridge
|
|
ipam:
|
|
config:
|
|
- subnet: 192.168.1.0/24
|
|
|