summaryrefslogtreecommitdiff
path: root/roles/scurvy/templates/docker-compose.yml.j2
blob: 838030cf0451e52fdc43777b5dc2d64d61883ad3 (plain)
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
52
53
54
55
56
57
58
59
60
61
version: '3'
services:
  gluetun:
    image: qmcgaw/gluetun
    container_name: gluetun
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    ports:
      - 127.0.0.1:9000:8080/tcp
      - 127.0.0.1:6881:6881
      - 127.0.0.1:6881:6881/udp
    volumes:
      - /gluetun
    environment:
      - VPN_SERVICE_PROVIDER=mullvad
      - VPN_TYPE=openvpn
      - OPENVPN_USER={{ openvpn_user }}
      - SERVER_CITIES=Salt Lake City UT

  qbittorrent:
    image: hotio/qbittorrent:latest
    container_name: qbittorrent
    environment:
      - PUID=1000
      - PGID=1000
    volumes:
      - qbittorrent_config:/config:rw
      - type: bind
        source: /mnt/hdd-01
        target: /hdd-01
      - type: bind
        source: /mnt/ssd-01
        target: /ssd-01
    restart: unless-stopped
    network_mode: "container:gluetun"

  jellyfin:
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin
    environment:
      - JELLYFIN_PublishedServerUrl=https://jellyfin.internal.simponic.xyz
    ports:
      - 127.0.0.1:8096:8096
    devices:
      - /dev/dri:/dev/dri
    volumes:
      - type: bind
        source: /mnt/hdd-01
        target: /hdd-01
      - type: bind
        source: /mnt/ssd-01
        target: /ssd-01
      - jellyfin_config:/config:rw
      - jellyfin_cache:/cache:rw

volumes:
  jellyfin_config:
  jellyfin_cache:
  qbittorrent_config: