1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-10-03 22:57:18 +02:00

Updated Docker (markdown)

Donald Webster 2017-03-07 13:12:19 -08:00
parent ee2ef40f53
commit 5e7140e4da

@ -12,7 +12,7 @@ Docker containers are intended to be static, they shouldn't self update internal
* Nightly: [hotio/radarr](https://hub.docker.com/r/hotio/radarr/) * Nightly: [hotio/radarr](https://hub.docker.com/r/hotio/radarr/)
# Using systemd # Using systemd
Using your favorite editor, create `/etc/systemd/system/docker-radarr.service` with the following systemd unit file. Be sure to replace `TIMEZONE` and `LOCALPATH` with the correct values. Using your favorite editor, create `/etc/systemd/system/docker-radarr.service` with the following systemd unit file. Be sure to replace `timezone` and `path to data` with the correct values. Note that the `ExecStart` is basically the same as command on the docker page for the image you choose, so adjust appropriately. This example uses `linuxserver/radarr`, but `hotio/radarr` is equally as valid.
```systemd ```systemd
[Unit] [Unit]
@ -25,14 +25,13 @@ Restart=on-failure
RestartSec=30 RestartSec=30
ExecStart=/usr/bin/docker run --rm \ ExecStart=/usr/bin/docker run --rm \
--name radarr \ --name=radarr \
--network host \ -v <path to data>:/config \
-e PUID=1000 \ -v <path to data>:/downloads \
-e PGID=1000 \ -v <path to data>:/movies \
-e TZ=<TIMEZONE> \ -e PGID=<gid> -e PUID=<uid> \
-v /<LOCALPATH>/config:/config \ -e TZ=<timezone> \
-v /<LOCALPATH>/downloads:/downloads \ -p 7878:7878 \
-v /<LOCALPATH>/movies:/movies \
linuxserver/radarr linuxserver/radarr
ExecStop=/usr/bin/docker stop radarr ExecStop=/usr/bin/docker stop radarr