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) - [Services](#services)
- [Docker](#docker) - [Docker](#docker)
- [External volumes](#external-volumes) - [Volumes](#volumes)
- [Portainer](#portainer) - [Portainer](#portainer)
- [Promtail](#promtail) - [Promtail](#promtail)
- [Telegraf](#telegraf) - [Telegraf](#telegraf)
@@ -41,11 +41,17 @@ Using [code-server docker container](#code-server) for Development / Maintenance
### Docker ### Docker
### External volumes ### Volumes
``` bash ``` bash
docker volume create --driver local --opt type=none --opt device=/home/admin/repos --opt o=bind hostfs_home_admin_repos # requires mount /mnt/media@sshfs:nas.lan
docker volume create --driver local --opt type=none --opt device=/mnt/media@sshfs:nas.lan --opt o=bind music # 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 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. [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 ### Mosquitto
[Git Repo](https://git.limbosolutions.com/marcio.fernandes/mosquitto) [Git Repo](https://git.limbosolutions.com/marcio.fernandes/mosquitto)
@@ -238,8 +246,10 @@ usermod -aG docker admin
### fstab ### fstab
```bash ```bash
#/etc/fstab # /etc/fstab
#sshfs#media@nas.lan:/home/media /mnt/media@sshfs:nas.lan fuse defaults,_netdev,allow_other,follow_symlinks 0 0
# 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 ### ssh

View File

@@ -33,7 +33,7 @@ server {
location ^~ /lms/ { location ^~ /lms/ {
proxy_pass http://localhost:9000/; proxy_pass http://lms-lms-1:9000/;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;