From b5b191982f57b1e064aaad2b0282d9b28fa2e876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Thu, 29 Aug 2024 00:06:44 +0100 Subject: [PATCH] change configuration has.conf/lms --- README.md | 22 +++++++++++++++------ services/nginx/docker/nginx.conf.d/has.conf | 2 +- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1361e98..125c976 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Using [code-server docker container](#code-server) for Development / Maintenance - [Services](#services) - [Docker](#docker) - - [External volumes](#external-volumes) + - [Volumes](#volumes) - [Portainer](#portainer) - [Promtail](#promtail) - [Telegraf](#telegraf) @@ -41,11 +41,17 @@ Using [code-server docker container](#code-server) for Development / Maintenance ### Docker -### External volumes +### Volumes ``` bash -docker volume create --driver local --opt type=none --opt device=/home/admin/repos --opt o=bind hostfs_home_admin_repos -docker volume create --driver local --opt type=none --opt device=/mnt/media@sshfs:nas.lan --opt o=bind music +# requires mount /mnt/media@sshfs:nas.lan +# required by LMS service +docker volume create --driver local --opt type=none --opt device=/mnt/media@sshfs:nas.lan/music --opt o=bind music + + +# required by code-server service +# required by Promtail service +# required by Telegraf service docker volume create --driver local --opt type=none --opt device=/ --opt o=bind hostfs ``` @@ -133,6 +139,8 @@ networks: [Check git repo](/marcio.fernandes/lms) for more information how to setup Lyrion Music Server docker container. Or [git repo](/marcio.fernandes/homeassistant#squeezebox-lyrion-music-server) for more information about home assistant integration. +Requires [music docker volume](#volumes). + ### Mosquitto [Git Repo](https://git.limbosolutions.com/marcio.fernandes/mosquitto) @@ -238,8 +246,10 @@ usermod -aG docker admin ### fstab ```bash -#/etc/fstab -#sshfs#media@nas.lan:/home/media /mnt/media@sshfs:nas.lan fuse defaults,_netdev,allow_other,follow_symlinks 0 0 +# /etc/fstab + +# used by docker volume music +sshfs#media@nas.lan:/home/media /mnt/media@sshfs:nas.lan fuse defaults,_netdev,allow_other,follow_symlinks 0 0 ``` ### ssh diff --git a/services/nginx/docker/nginx.conf.d/has.conf b/services/nginx/docker/nginx.conf.d/has.conf index 5315a18..43690be 100644 --- a/services/nginx/docker/nginx.conf.d/has.conf +++ b/services/nginx/docker/nginx.conf.d/has.conf @@ -33,7 +33,7 @@ server { location ^~ /lms/ { - proxy_pass http://localhost:9000/; + proxy_pass http://lms-lms-1:9000/; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;