From 227f0a5df51ab04501886a16eab32068d31176d0 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Sat, 10 Aug 2024 22:42:06 -0500 Subject: [PATCH] Add navidrome too --- playbooks/local_dns.yml | 2 ++ playbooks/prod_web.yml | 6 ++++++ playbooks/tasks/web/navidrome.yml | 16 ++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 playbooks/tasks/web/navidrome.yml diff --git a/playbooks/local_dns.yml b/playbooks/local_dns.yml index 8b1bada..fac8529 100755 --- a/playbooks/local_dns.yml +++ b/playbooks/local_dns.yml @@ -109,6 +109,8 @@ - record: prometheus.desu.ltd value: vm-general-1.ashburn.mgmt.desu.ltd # Public media stuff + - record: music.desu.ltd + value: vm-general-1.ashburn.mgmt.desu.ltd - record: lidarr.media.desu.ltd value: vm-general-1.ashburn.mgmt.desu.ltd - record: prowlarr.media.desu.ltd diff --git a/playbooks/prod_web.yml b/playbooks/prod_web.yml index 3ca031c..9e300c3 100755 --- a/playbooks/prod_web.yml +++ b/playbooks/prod_web.yml @@ -30,6 +30,7 @@ - web/synapse.yml # Backend web services - web/lidarr.yml + - web/navidrome.yml - web/prowlarr.yml - web/radarr.yml - web/sonarr.yml @@ -140,6 +141,11 @@ - "deny all" proxy_pass: http://prometheus:9090 # desu.ltd media bullshit + - name: music.desu.ltd + directives: + - "allow {{ common_home_address }}/{{ common_home_address_mask }}" + - "deny all" + proxy_pass: http://navidrome:4533 - name: lidarr.media.desu.ltd directives: - "allow {{ common_home_address }}/{{ common_home_address_mask }}" diff --git a/playbooks/tasks/web/navidrome.yml b/playbooks/tasks/web/navidrome.yml new file mode 100644 index 0000000..4f605d6 --- /dev/null +++ b/playbooks/tasks/web/navidrome.yml @@ -0,0 +1,16 @@ +# vim:ft=ansible: +- name: docker deploy navidrome + docker_container: + name: navidrome + image: deluan/navidrome:latest + user: 911:911 + env: + ND_BASEURL: "https://music.desu.ltd" + ND_LOGLEVEL: "info" + networks: + - name: web + aliases: [ "navidrome" ] + volumes: + - /data/navidrome/data:/data + - /data/shared/media/music:/music:ro + tags: [ docker, navidrome ]