diff --git a/Docker.md b/Docker.md index 6aa54d8..bd46e27 100644 --- a/Docker.md +++ b/Docker.md @@ -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):