---
version: '3.7'
services:
  daemon:
    build:
      context: daemon/
    ports:
      - 51413:51413/tcp
      - 51413:51413/udp
    volumes:
      - daemon:/var/lib/transmission
      - /srv/library:/var/lib/transmission/Downloads
    restart: always
    networks:
      default:
        aliases:
          - transmission-daemon

  rss:
    build:
      context: rss/
    volumes:
      - rss:/var/lib/transmission-rss/
    restart: always

  webdav:
    image: registry.shore.co.il/webdav
    volumes:
      - /srv/library:/var/www/webdav:ro
    restart: always
    networks:
      default:
        aliases:
          - transmission-webdav

volumes:
  daemon:
  rss:

networks:
  default:
    name: shore
