• Stars
    star
    170
  • Rank 222,323 (Top 5 %)
  • Language
    Shell
  • Created almost 4 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Repo to define my use of docker containers on my home network with Reverse Proxy Configuration

My Home Network/Docker Setup

Intro

I have 2 Raspberry Pi 4bs in my house that is running a handful of docker containers to do MISC things on my home network and I wanted to be able to easily reach these services and have a more managed approach. I decided that I wanted to configure a Reverse Proxy to forward all my services under a single domain. This repo is what I have currently configured on my home network, and includes docker-compose yml files, and scripts to set up a similar environment.

NOTE: The docker images below all have ARM tags, so make sure that if you aren't using ARM that the image has the arch you need

Prerequisites

# Create docker group and add user to it (allows non-root to run docker)
sudo groupadd docker
sudo usermod -aG docker <youruser>`
newgrp docker

# Run docker at startup
sudo systemctl enable docker
sudo setfacl -Rdm g:docker:rwx ~/docker
sudo chmod -R 775 ~/docker
chmod 600 ~/docker/traefik/acme/acme.json
  • Create Traefik Proxy Network

docker network create --gateway 192.168.50.1 --subnet 192.168.50.0/24 traefik_proxy

Ok Now What?

At this point you should have an environment ready to start building containers. At this point, you can follow the BLOG(starting HERE) and start configuring to your heart's content.

Few things to point out

  • You really need to take a look at the Traefik configuration section of the blog. More than likely OOB my setup will work for you, but you should take a look at the .bash_aliases as they are super helpful, as well as the .env file in the ymlfiles directory.
  • I added a resolv.conf to this repo as I had a problem with DNS on SOME containers. Mounting this file inside the container (done in the yml files) resolved it (PUN INTENDED).
  • Since some of my services run on a host that Traefik is not configured on, I need to configure a rule to forward those requests. For instance here is how I do it for Pi Hole

Reach out if you want to chat!

I am not even close to an expert on these things, but I was able to hack away to get what I was looking for, and I am pretty happy with it. All my services are accessible outside my network and are secured with Google Auth. Is this the best/safest implementation? NO! If you want to know how I did some of this stuff, or want to chat, hit me up on Discussions

More Repositories

1

presencelight

PresenceLight is a solution to broadcast your various statuses to light bulbs.
C#
419
star
2

MicrosoftTerminalProfiles

All Images and Profiles to mimic my MIcrosoft Terminal Setup
PowerShell
23
star
3

YahooFantasyWrapper

Wrapper for the Yahoo Fantasy Sports API. Includes Authorization and Data Retrieval
C#
22
star
4

windows-store-action

GitHub Action to deploy MSIX Packages to the Windows Store
TypeScript
14
star
5

dotnet-cowsay

.NET Core Global Tool that gives a a random blog post from discoverdot.net
C#
12
star
6

WorkFlowGenerator

A .NET global tool to generate workflows for GitHub Actions based on project configuration and user inputs
C#
11
star
7

LifxCloudClient

.NET Standard 2.0 Library to manage LIFX Cloud-Enabled Bulbs
C#
6
star
8

dep_LevinBlog

Old Repo for Angular/.NET Core Version of isaaclevin.com
C#
4
star
9

GitHubStatTracker-Function

Azure Function to get GitHub Traffic (PageViews and Unique Users). I had to write this because GitHub Insights only goes back 2 weeks
C#
4
star
10

Elastiflix

Sample Repo of how to ingest and query content from Elastic using .NET
HTML
3
star
11

levin-talks

Abstracts and Slides for talks
3
star
12

.NET-Conf-Demos

C#
3
star
13

RedditPoller

POC on Azure Function to "Scrape Reddit" for new posts and email them with SendGrid
C#
3
star
14

LevinUrlShortener

C#
3
star
15

aspnet-workshop

HTML
3
star
16

LevinBlog

Hugo Generated Static Site hosted in Azure Blob Storage that runs
HTML
2
star
17

CoffeeAndOpenSource.com

Sass
2
star
18

ASPNETCore3OrderApp

Order Management App written in ASP.NET Core Features Server-Side Blazor, gRPC and Worker Service
C#
2
star
19

isaacrlevin

Mustache
2
star
20

CraigslistSearch

Server Side Blazor App to Search Craigslist
HTML
2
star
21

toh-dotnet

Angular 13 Tour of Heroes with .NET Core 6 BackEnd
TypeScript
2
star
22

ASP.NET-Core-2.1-Samples

Aggregation of Samples of features for ASP.NET Core 2.1
C#
2
star
23

BlazorGitHubPages

BlazorGitHubPages
CSS
1
star
24

AngularRichTextEditors

This repo includes samples for some Rich Text Editors that exist. They include
JavaScript
1
star
25

GitHubStatTracker

Repo for http://ghst.azurewebsites.net/
HTML
1
star
26

PresenceLightWorkerDownloads

Repo for https://presencelightapp.azurewebsites.net/ which acts as a download page for OS-specific downloads for the PresenceLight Application
C#
1
star
27

EFCoreAzureFunction

Sample of using Dependency Injection inside an Azure Function to interact with Sql Server via Entity Framework Core 2.0.
C#
1
star
28

winget-publish-action

PowerShell
1
star