ansible-nas/tasks/plex.yml
bcurran3 0491d58884
Update Plex default memory limitation 1g -> 2g
REF: https://support.plex.tv/articles/200375666-plex-media-server-requirements/

"RAM
In general, Plex Media Server doesn’t require large amounts of RAM. 2GB of RAM is typically more than sufficient and some installs (particularly Linux-based installs) can often happily run with even less. Of course, more RAM won’t hurt you and will certainly be helpful if you’re also doing other things on the computer."
2020-04-15 22:57:34 -07:00

33 lines
1.1 KiB
YAML

- name: Create Plex Directories
file:
path: "{{ item }}"
state: directory
# mode: 0755
with_items:
- "{{ plex_config_directory }}"
- "{{ plex_logs }}"
- name: plex Docker Container
docker_container:
name: plex
image: linuxserver/plex
pull: true
volumes:
- "{{ plex_config_directory }}:/config:rw"
- "{{ plex_logs }}:/opt/plex/Library/Application Support/Plex Media Server/Logs:rw"
- "{{ plex_movies_directory }}:/movies:{{ plex_movies_permissions }}"
- "{{ plex_tv_directory }}:/tv:{{ plex_tv_permissions }}"
- "{{ plex_photos_directory }}:/photos:{{ plex_photos_permissions }}"
- "{{ plex_music_directory }}:/music:{{ plex_music_permissions }}"
network_mode: "host"
env:
TZ: "{{ ansible_nas_timezone }}"
PUID: "{{ plex_user_id }}"
PGID: "{{ plex_group_id }}"
restart_policy: unless-stopped
memory: 2g
labels:
traefik.backend: "plex"
traefik.frontend.rule: "Host:plex.{{ ansible_nas_domain }}"
traefik.enable: "{{ plex_available_externally }}"
traefik.port: "32400"