Coder Social home page Coder Social logo

captn3m0 / nebula Goto Github PK

View Code? Open in Web Editor NEW
58.0 4.0 2.0 987 KB

Source Code for the Home Server setup.

Home Page: https://git.captnemo.in/nemo/nebula

HCL 88.18% Smarty 11.39% Shell 0.33% PHP 0.10%
terraform docker cloudflare learning-exercise traefik homeserver selfhosted linuxserver transmission emby

nebula's Introduction

nebula

Nebula header image

Where stars are born.

Manages the local infrastructure of my home server. I'm also doing blog posts around the same:

  1. Part 1, Hardware
  2. Part 2, Terraform/Docker
  3. Part 3, Learnings
  4. Part 4, Migrating from Google (and more)
  5. Part 5, Networking
  6. Part 6, RAID

The canonical URL for this repo is https://git.captnemo.in/nemo/nebula/. A mirror is maintained on GitHub at https://github.com/captn3m0/nebula

modules

  1. docker: to actually run the services. Catch-all for miscellaneous containers
  2. cloudflare: to manage the DNS.
  3. mysql: to create mysql users and databases.
  4. media: Media related containers (Jackett, Lidarr, Radarr, Sonarr)
  5. Monitoring: Monitoring related resources (Cadvisor, Grafana, NodeExporter, Prometheus, Transmission-Exporter)
  6. Gitea: Just git.captnemo.in
  7. miniflux: RSS Web reader
  8. Radicale: CardDav/CalDav webserver

Self-learning project for terraform/docker.

Planned

  1. Setup DigitalOcean
  2. Add DO infrastructure via ansible
  3. Add traefik for proper proxying
  4. Maybe add docker swarm (or k8s?) across both the servers. Might setup the k8s API on the Raspberry Pi.

Service List

Currently running the following (all links are to the store.docker.com links for the docker images that I'm using:

image tag module/link
captn3m0/opml-gen latest https://opml.bb8.fun
captn3m0/rss-bridge latest https://github.com/RSS-Bridge/rss-bridge
captn3m0/speedtest-exporter alpine https://github.com/stefanwalther/speedtest-exporter
emby/embyserver latest https://emby.media
gitea/gitea 1.5.0-rc1 services
google/cadvisor latest monitoring
grafana/grafana latest monitoring
jankysolutions/requestbin latest tools
linuxserver/airsonic latest media
linuxserver/jackett latest media
linuxserver/lidarr latest media
linuxserver/lychee latest media
linuxserver/radarr latest media
linuxserver/sonarr latest media
linuxserver/transmission latest media
linuxserver/ubooquity latest media
miniflux/miniflux 2.0.9 tools
postgres 10-alpine database
prom/node-exporter v0.15.2 monitoring
prom/prometheus latest monitoring
requarks/wiki latest services
serjs/go-socks5-proxy latest tools
tocttou/gotviz latest na
tomsquest/docker-radicale latest services
traefik 1.6-alpine plumbing

Docker Notes

  • Lots of the above images are from the excellent LinuxServer.io, and they're doing great work ๐Ÿ‘
  • Most images are running the latest beta (if available) or stable versions.
  • Traefik is running with wildcard certificates.

Upstream

I've been using this as a contributing opportunity and reporting/fixing issues upstream:

  1. Airsonic HTTPS proxying is broken. Reported: airsonic/airsonic#641. Turned out to be a known issue: airsonic/airsonic#594. Now fixed.
  2. Traefik docker backend security headers were broken with dashes. I reported it here, and fixed by traefik/traefik#2496 โœ…
  3. Headphones dies repeatedly with no error logs. Yet-to-report. (Already reported, fails due to classical artists)
  4. Terraform doesn't parse mariadb version numbers. Report: hashicorp/terraform-provider-mysql#6. Filed a PR to fix and to bump the go-version dependency โœ…
  5. elibsrv didn't support ebook-convert, only mobigen. PR is at captn3m0/elibsrv#1. Merged to elibsrv trunk, will be part of next release.
  6. ubooquity docker container doesn't let you set admin password: linuxserver/docker-ubooquity#17. (Couldn't reproduce, closed) โœ…
  7. Traefik customresponseheaders can't contain colons on the docker backend: traefik/traefik#2517. Fixed with traefik/traefik#2509 โœ…
  8. Traefik Security headers don't overwrite upstream headers: traefik/traefik#2618 โœ…
  9. Transmission exporter broke with different data types while unmarshalling JSON in go. I filed a PR metalmatze/transmission-exporter#2 โœ…
  10. Radarr official docker container was running a very old mediainfo. Filed a fix to upgrade mediainfo on the official radarr image โœ…
  11. Patched the speedtest-exporter to use Alpine and upgraded Node.JS for a smaller updated build.
  12. Faced (4) above again because mariadb decided to add : in the version response. Workaround was to force set --version=10.3-mariadb
  13. Reported 2 critical security issues in Abstruse CI. โœ…
  14. Faced (13) above again with postgres, thankfully someone already fixed version parsing โœ…
  15. RSS Bridge was missing an official Docker Image. I Filed a PR โœ…

Plumbing

Their is a lot of additional infrastructure that is not-yet part of this repo. This includes:

  1. The Digital Ocean droplet running DNSCrypt and simpleproxy to proxy over a openvpn connection to this box.
  2. openbox, kodi configuration to run on boot along with the Steam Controller for the HTPC setup
  3. Docker main configuration with half-baked CA setup
  4. btrfs-backed subvolumes and snapshotting for most things in /mnt/xwing/ (in-progress)
  5. User-creation on the main server. (I'm using a common user for media applications and specific users for other applications)

License

All code in this repository is shared under the MIT License.

nebula's People

Contributors

captn3m0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.