GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - barsikus007/NAS: Modern dockerized NAS setup. Target architecture is x64 (was arm64).

BranchesTags
Open more actions menu

Latest commit

 

History

95 Commits
95 Commits

Folders and files

NameName
Last commit message
Last commit date
apps
apps
 
 
bin
bin
 
 
.editorconfig
.editorconfig
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
.provider.env.example
.provider.env.example
 
 
NAS.code-workspace
NAS.code-workspace
 
 
README.md
README.md
 
 
compose.yaml
compose.yaml
 
 
lscr.env
lscr.env
 
 

Repository files navigation

NAS

Install

  1. Install docker (ex: curl -fsSL https://get.docker.com | sh)
  2. Copy *.env.example files to *.env and edit
  3. Edit compose.yaml templates at the beginning
  4. Create APPDATA_VOLUME and STORAGE_VOLUME folders/mountpoints
  5. Open 80, 443 (traefik entrypoints), 3478 (nextcloud-talk entrypoint) and 51413 (transmission seeding) ports in router and firewall
  6. docker compose up -d --build && sudo chown -R --reference=${HOME} ${APPDATA_VOLUME}/*
    1. Use docker compose up -d --build --wait or ./bin/graceful_start.sh to start
    2. Change the ownership of the files under APPDATA_VOLUME (e.g. source .env && sudo chown -R --reference=${HOME} ${APPDATA_VOLUME}/*) immediately after volume creation
  7. Wait for containers to be in a healthy state, then stop some of them to patch docker compose stop organizr && ./bin/appdata_patcher.sh && docker compose up -d organizr
  8. Configure web applications manually as indicated in the section below

P.S

  • devices: compose sections
    • adapt jellyfin compose config to your hardware decoders
    • add your disks to scrutiny compose config
  • TODO subo bash -c 'echo "ignore-warnings ARM64-COW-BUG" >> ${APPDATA_VOLUME?}/gitlab/data/redis/redis.conf'

GUI configuration

  • LLDAP lldap.${HOST}
    • Setup Organizr to pass auth on lldap endpoint if needed (TODO)
    • Create users
    • TODO
  • NextCloud AIO aio-cloud.${HOST}
    • Specify cloud.${HOST} in certain field
    • Change TZ
    • Specify apps to install and install
      • I prefer to enable all except ClamAV (antivirus) and Docker Socket Proxy
    • Specify backup location /tank/storage/backups/dirs/nextcloud and generate password
  • NextCloud cloud.${HOST}
    • /settings
      • /apps/disabled
        • /files_external Enable External storage support app
        • /user_ldapEnable LDAP user and group backend app
      • /admin/externalstorages
        • Storage;Local;None;/tank/storage;All users
      • /admin/ldap
        • TODO
      • /admin/overview Create backup in AIO after setup
  • Organizr ${HOST}
    • LDAP /#settings-settings-main => Authentication => set Bind Password
    • Setup tabs TODO
  • JellyFin media.${HOST}
    • /web/index.html#!
      • /addplugin.html?name=LDAP%20Authentication
        • Install LDAP plugin
        • /dashboard.html Shutdown (docker will reboot jellyfin)
        • /configurationpage?name=LDAP-Auth
        • TODO
      • /networking.html Allow remote connections to this server
    • TODO Add Media Libraries

Attack surface

  • WAN => fail2ban => docker network
    • 80,443/tcp traefik
      • 80 is redirected to 443
      • 443 refer to docker-hosted services
        • gitlab.${HOST} (TODO)
        • whoami.${HOST} (for testing purposes)
        • media.${HOST} -> jellyfin (for non-web apps)
        • cloud.${HOST} -> nextcloud (TODO)
        • auth.${HOST} -> authelia
        • rest services use authelia auth
    • 3478/all nextcloud-talk
    • 21114-21119/tcp,21116/udp rustdesk
    • 22000/all syncthing
    • 51413/all transmission
  • LAN => docker network
    • 8096 jellyfin webUI
    • 1900/udp jellyfin service discovery (DNLA)
    • 7359/udp jellyfin client discovery
    • 21027/udp syncthing client discovery

Notes

  • Domain structure:
    • ${HOST} => organizr
      • www.${HOST} => organizr
      • traefik.${HOST} => traefik dashboard
      • TODO
  • Folder structure for media system is:
    • ${STORAGE_VOLUME}/downloads/
      • ${STORAGE_VOLUME}/downloads/{,in}complete for downloads
      • ${STORAGE_VOLUME}/downloads/torrents for torrent files
      • ${STORAGE_VOLUME}/downloads/media for jellyfin managed media
  • Transmission alt speed enabled due to broken pcie on rock-3a to reduce overload
  • Target of this build is AMD64
    • It was ARM64 before, but I fucked enough with my rock-3a
  • CrowdSec cheatsheet
    • docker compose exec crowdsec cscli metrics
    • docker compose exec crowdsec cscli alerts list
    • docker compose exec crowdsec cscli decisions list
      • docker compose exec crowdsec cscli decisions delete -i x.x.x.x

TODO

  • software
    • is stopping organizr needed for patching?
    • why chown?
    • speedtest
    • move traefik to brand new dir
    • maybe add separate env file for acme provider
    • ldap
      • organizr
      • nextcloud
      • jellyfin
    • patchers
      • apps/ patcher with .env values
      • {$APPDATA_VOLUME}/ patcher with .env values
    • organizr SSO ?
    • healthchecks ?
      • glances
      • portainer
      • scrutiny
      • traefik
      • whoami
  • alternate software
    • seafile ? (check nextcloud speed)
      • OCIS
    • Forgejo ? (instead of gitlab, less bloated?)
  • new software
    • https://github.com/ramanlabs-in/hachi
      • probably, on client with webdav
  • software late
    • VPN (wireguard)
      • inner
      • outer
    • security
      • change lscr.env UID GID
      • change passwds
      • change ssh-key after complete setup
      • use docker secrets
      • secure whole server with vpn and/or firewall
      • traefik stsSeconds
    • SMTP
      • authelia
  • readme roadmap
    • PBR section
    • check for grammar issues
  • podman migration
    • (better than docker ?)
    • why ?
    • nextcloud/all-in-one#3487

ZFS cheatsheet

References

  • Цикл статей: построение защищённого NAS, либо домашнего мини-сервера

About

Modern dockerized NAS setup. Target architecture is x64 (was arm64).

Topics

arm64dockerdocker-composenasnextcloudtraefik

Resources

Readme
Activity

Stars

6 stars

Watchers

1 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.