Skip to content

Commit 38fb47e

Browse files
committed
wording updates on a few files, write compose instructions
1 parent 588714b commit 38fb47e

File tree

5 files changed

+102
-21
lines changed

5 files changed

+102
-21
lines changed

docs/install/compose.md

Lines changed: 82 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,94 @@ description: Install Unpackerr with Docker Compose!
99
- Copy the [example docker-compose.yml](https://github.com/Unpackerr/unpackerr/blob/main/examples/docker-compose.yml)
1010
from the repo.
1111
- Update the docker-compose.yml file with your environment variable values for your installation.
12-
- Recommend removing variables you are not using; the defaults are found on the Configuration page.
13-
- Then start it.
12+
- Remove variables you did not change; the defaults are found on the Configuration page.
13+
- Again, remove the variables you don't set or change. You can always add them back later.
14+
- **Do not quote variable values, this isn't bash.**
15+
- Then start it, like this:
1416

1517
```shell
1618
docker-compose up -d
1719
```
1820

19-
:::warning Data Mount
20-
The `/data` or `/downloads` mount you use for starr apps should be set the same for unpackerr.
21+
Here's an example minimal compose file. This works, and all the defaults should work for you too.
22+
Set `PUID`, `PGID` and `TZ` in your compose `.env` for this example to work correctly.
23+
24+
```yaml
25+
services:
26+
unpackerr:
27+
image: golift/unpackerr
28+
container_name: unpackerr
29+
volumes:
30+
- /mnt/storage/downloads:/downloads
31+
restart: always
32+
user: ${PUID}:${PGID}
33+
environment:
34+
- TZ=${TZ}
35+
- UN_LOG_FILE=/downloads/unpackerr.log
36+
- UN_SONARR_0_URL=http://sonarr:8989
37+
- UN_SONARR_0_API_KEY=32coolcatcharacters
38+
- UN_RADARR_0_URL=http://radarr:7878
39+
- UN_RADARR_0_API_KEY=32coolkatcharacters
40+
```
41+
42+
# Data Mount
43+
44+
:::info Data Mount
45+
The `/data` or `/downloads` mount you use for Starr apps should be set the same for Unpackerr.
2146
Using the same mount path keeps consistency and makes troubleshooting Unpackerr easier.
47+
Most importantly, it allows Unpackerr to find your files.
2248

23-
This means that if you mount `/mnt/HostDownloads:/downloads` on your starr apps you should
24-
also mount `/mnt/HostDownloads:/downloads` on your unpackerr container. If you mount
25-
`/mnt/user/data:/data` on your starr apps, mount the same path on Unpackerr.
49+
This means that if you mount `/mnt/storage/downloads:/downloads` on your Starr apps you should
50+
also mount `/mnt/storage/downloads:/downloads` on your Unpackerr container. If you mount
51+
`/mnt/user/data:/data` on your Starr apps, mount the same path on Unpackerr.
2652
**Make sure Unpackerr can find the downloads in the same place that Sonarr and Radarr find them.**
2753
:::
54+
55+
This is the most important part. Look at your download client (like Qbit), Sonarr and Radarr in your
56+
existing compose; look for `volumes:`. One of these volumes is your download mount. It's usually
57+
`/data` or `/downloads` and looks like this:
58+
59+
```yaml
60+
volumes:
61+
- /mnt/storage/downloads:/downloads
62+
```
63+
64+
Simply copy the downloads storage volume from your Starr apps or download client to Unpackerr.
65+
66+
# Log File
67+
68+
**Set a log file.** You'll need it to figure out what Unpackerr did. Put it in your download location.
69+
Example:
70+
71+
```yaml
72+
environment:
73+
- UN_LOG_FILE=/downloads/unpackerr.log
74+
```
75+
76+
Replace `/downloads/unpackerr.log` with `/data/unpackerr.log` if you mounted `/data` in `volumes:`.
77+
Or whatever download path you mounted; just put it there for ease of finding it.
78+
79+
# More Notes
80+
:::warning Security Opts
81+
Do not include this in your compose. It will make Unpackerr not work properly. If you know how
82+
to adjust caps, go for it, but please don't ask for help without removing this first:
83+
84+
```yaml
85+
security_opt:
86+
- no-new-privileges:true
87+
```
88+
:::
89+
90+
# Config File
91+
92+
_Very Optional:_
93+
94+
You may also use a config file with or instead of environment variables. Name the file `unpackerr.conf`
95+
and mount the folder it's in to `/config`, so the file becomes available at `/config/unpackerr.conf`.
96+
Here's an example volume mount. You need one like this that ends with `/config`. Put the file in the
97+
folder on the left side.
98+
99+
```yaml
100+
volumes:
101+
- /mnt/appdata/unpackerr:/config
102+
```

docs/install/docker.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,20 @@ docker logs <container id from docker run>
2323
```
2424

2525
:::warning Data Mount
26-
The `/data` or `/downloads` mount you use for starr apps should be set the same for unpackerr.
26+
The `/data` or `/downloads` mount you use for Starr apps should be set the same for Unpackerr.
2727
Using the same mount path keeps consistency and makes troubleshooting Unpackerr easier.
28+
Most importantly, it allows Unpackerr to find your files.
2829

29-
This means that if you mount `/mnt/HostDownloads:/downloads` on your starr apps you should
30-
also mount `/mnt/HostDownloads:/downloads` on your unpackerr container. If you mount
31-
`/mnt/user/data:/data` on your starr apps, mount the same path on Unpackerr.
30+
This means that if you mount `/mnt/storage/downloads:/downloads` on your Starr apps you should
31+
also mount `/mnt/storage/downloads:/downloads` on your Unpackerr container. If you mount
32+
`/mnt/user/data:/data` on your Starr apps, mount the same path on Unpackerr.
3233
**Make sure Unpackerr can find the downloads in the same place that Sonarr and Radarr find them.**
3334
:::
3435

3536
## Docker Example with config file
3637

3738
- Copy the [example config file](https://github.com/Unpackerr/unpackerr/blob/main/examples/unpackerr.conf.example)
38-
from the repo.
39+
from the repo, or [generate one](https://notifiarr.com/unpackerr.php).
3940
- Then grab the image from docker hub and run it using an overlay for the config file's directory.
4041
- The config file must be at `/config/unpackerr.conf`.
4142
- Recommend bind-mounting `/config` as an app-data directory. Example Follows.
@@ -48,9 +49,9 @@ docker logs <container id from docker run>
4849

4950
## More Dockers
5051

51-
If you want a container that has a bit more to it, you can try a third party option.
52-
The container provided by golift is from scratch so it has nothing more than a binary
53-
and a config file (with our defaults).
52+
If you want a container that has a bit more to it, you can try a third party option.
53+
The container provided by golift is built `FROM scratch` so it has nothing more in the
54+
container than a binary and a config file (with our defaults).
5455

5556
- **[@hotio](https://github.com/hotio) maintains a
5657
[Custom Docker Container](https://hub.docker.com/r/hotio/unpackerr)
@@ -69,8 +70,9 @@ docker run --user 1000:100 -d -v /mnt/data:/data -v /mnt/config:/config golift/u
6970
### Hotio
7071

7172
The primary difference between the golift and hotio containers is how you set the uid and gid.
72-
Hotdio does not user the `--user` parameter and instead sets the UID and GID with environment variables.
73-
Pass the `PUID` and `PGID` env variables when using hotio's container. Example:
73+
Hotio does not user the `--user` parameter and instead sets the UID and GID with environment
74+
variables. *Passing the `--user` parameter to the hotio container will render it inoperable.*
75+
Pass the `PUID` and `PGID` environment variables when using hotio's container. Example:
7476

7577
```bash
7678
# This commands runs hotio/unpackerr with UID 1000 and GID 100.

docs/install/seedbox.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ Learn how to install Unpackerr on your linux shell without root.
1414

1515
1. Download and extract a binary from the [releases](https://github.com/Unpackerr/unpackerr/releases) page.
1616
1. Rename the file to `unpackerr` and make it executable: `chmod +x unpackerr`
17-
1. Download the [example config file](https://github.com/Unpackerr/unpackerr/blob/main/examples/unpackerr.conf.example).
17+
1. Download the [example config file](https://github.com/Unpackerr/unpackerr/blob/main/examples/unpackerr.conf.example),
18+
or [generate one](https://notifiarr.com/unpackerr.php).
1819
1. Edit config file to suit your needs: `nano unpackerr.conf`
1920
1. Put both on your Linux shell server, in an `~/unapckerr/` folder.
2021
1. Run Unpackerr in the background, `screen` is the easiest way to do so.

docs/install/truenas-scale.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ You will need the following items before getting started:
3434
The goal is make the config file available @ `/config/unpackerr.conf` inside the container.
3535
Using this container path will allow Unpackerr to find your configuration automatically.
3636
You may also need to correct ownership of the file on the host so unpackerr can read it.
37-
Use `chown` to do that. Something like: `chown apps:apps /mnt/default/unpackerr/unpackerr.conf`
37+
Use `chown` to do that; something like: `chown apps:apps /mnt/default/unpackerr/unpackerr.conf`
3838
:::
3939

4040
## Installing the App

docs/install/unraid.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ the `1` to a `2` and so on. This works for all starr apps, folders, webhooks and
2323
hooks. There is no limit to how many you may configure.
2424
:::
2525

26-
It's also recommend that you set a log file. It's easy to put it your downloads location,
27-
example follows.
26+
It's also recommend that you set a log file.
27+
It's recommended to put it in your downloads location, and an example follows.
2828

2929
![](/img/screenshots/unraid/bindvolume.png "bind volume")
3030

@@ -44,6 +44,9 @@ not what you want. **Do this:**
4444
![](/img/screenshots/unraid/starrmounts.png "starr mounts")
4545

4646
If the highlighted portions above are not identical to the one below, then things are bound to work poorly.
47+
In other words, if Unpackerr has `/downloads <-> /mnt/user/downloads` and Sonarr has
48+
`/data <-> /mnt/user/downloads`, Unpackerr will not be able to find your files. In this hypothetical, you
49+
must edit the Unpackerr `/downloads` mount, and change the _Container Path_ to `/data` so it matches Sonarr.
4750

4851
![](/img/screenshots/unraid/unpackerrmount.png "unapackerr mount")
4952
:::

0 commit comments

Comments
 (0)