mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-27 12:03:08 +00:00
18 lines
510 B
YAML
18 lines
510 B
YAML
- name: minidlna Docker Container
|
|
docker_container:
|
|
name: minidlna
|
|
image: vladgh/minidlna
|
|
pull: true
|
|
volumes:
|
|
- "{{ minidlna_media_directory1 }}:/media1:rw"
|
|
- "{{ minidlna_media_directory2 }}:/media2:rw"
|
|
ports:
|
|
- "8201:8201"
|
|
env:
|
|
MINIDLNA_MEDIA_DIR1: "/media1"
|
|
MINIDLNA_MEDIA_DIR2: "/media2"
|
|
MINIDLNA_FRIENDLY_NAME: "{{ minidlna_friendly_name }}"
|
|
MINIDLNA_PORT: "8201"
|
|
network_mode: host
|
|
restart_policy: unless-stopped
|
|
memory: 1g
|