1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-17 00:13:15 +01:00

Adding ansible task for installing/running with docker.

Chris Johnson 2019-02-25 19:10:11 -08:00
parent 46c53ea8c6
commit 1d1c6718bf

@ -100,6 +100,31 @@ sudo docker pull linuxserver/radarr
sudo systemctl restart docker-radarr
```
# Using Ansible
Ansible provides a simple module to manage docker containers. Here's a simple task that can get Radarr running.
```
- name: radarr container
docker_container:
name: radarr
image: linuxserver/radarr:0.2.0.1316-ls4
state: started
restart_policy: unless-stopped
published_ports:
- "7878:7878"
env:
TZ: America/Los_Angeles
PGID: 118
PUID: 1000
volumes:
- /host/config:/config
- /host/movies:/movies
- /host/downloads:/downloads
```
PGID and PUID are the group and user id to run the container under.
# Advanced
## Automate Docker Image Update
If you want to automate this, you can use the following script (let it run with a systemd timer):