2017-08-28 15:31:54 +00:00
|
|
|
---
|
|
|
|
- name: Create Couchpotato Directories
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
# mode: 0755
|
|
|
|
with_items:
|
|
|
|
- "{{ docker_home }}/couchpotato/config"
|
|
|
|
|
|
|
|
- name: Couchpotato Docker Container
|
|
|
|
docker_container:
|
|
|
|
name: couchpotato
|
|
|
|
image: linuxserver/couchpotato
|
|
|
|
pull: true
|
|
|
|
volumes:
|
2017-08-28 21:10:19 +00:00
|
|
|
- "{{ couchpotato_config_directory }}:/config:rw"
|
2020-03-23 23:01:37 +00:00
|
|
|
- "{{ couchpotato_downloads_directory }}:/downloads:rw"
|
2017-08-28 21:10:19 +00:00
|
|
|
- "{{ couchpotato_movies_directory }}:/movies:rw"
|
|
|
|
- "{{ couchpotato_torrents_directory }}:/torrents:rw"
|
2017-08-28 15:31:54 +00:00
|
|
|
ports:
|
2020-01-05 21:47:40 +00:00
|
|
|
- "{{ couchpotato_port }}:5050"
|
2017-08-28 15:31:54 +00:00
|
|
|
env:
|
2018-11-12 22:30:13 +00:00
|
|
|
TZ: "{{ ansible_nas_timezone }}"
|
2017-08-28 15:31:54 +00:00
|
|
|
PUID: "{{ couchpotato_user_id }}"
|
|
|
|
PGID: "{{ couchpotato_group_id }}"
|
|
|
|
restart_policy: unless-stopped
|
2019-04-11 22:03:11 +00:00
|
|
|
memory: 1g
|
|
|
|
labels:
|
|
|
|
traefik.backend: "couchpotato"
|
|
|
|
traefik.frontend.rule: "Host:couchpotato.{{ ansible_nas_domain }}"
|
|
|
|
traefik.enable: "{{ couchpotato_available_externally }}"
|
2020-01-18 18:16:24 +00:00
|
|
|
traefik.port: "5050"
|