change configuration has.conf/lms
All checks were successful
Portainer stack nginx / deploy (push) Successful in 3s

This commit is contained in:
2024-08-29 00:06:44 +01:00
parent 08e10e4ee0
commit b5b191982f
2 changed files with 17 additions and 7 deletions

View File

@@ -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

View File

@@ -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;