Timothylock / service-monorepo

All of the services running on my server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Service Monolith

All of the containers running on my server

Getting Started

Prerequisites

Running

run startServer.sh

Secrets

A secrets file is required. Make ./docker/.env and add all of the required variables. The variables are as follows:

  • MYSQL_ROOT_PASS
  • MYSQL_USER_PASS
  • HOME_ASSISTANT_API_PASSWORD
  • HOME_ASSISTANT_DB_URL
  • UPC_LOOKUP_TOKEN
  • ZOHO_SERV
  • ZOHO_PORT
  • ZOHO_USR
  • ZOHO_PASS
  • ZOHO_FROM_ADDR

Building

The docker pulls from dockerhub repo. All of these images are also on that repo. To build and push, navigate to ./src/CONTAINERNAME and run ./build.sh.

You must already be logged in to dockerhub to be able to push. If not, run docker login.

Ports

While these ports aren't externally exposed or used by nginx-proxy, they are useful for local development. Not a great practice, but the dockerfile is shared between prod and dev so these ports are theoretically exposed on prod as well. In my case, the firewall only opens up port 80 so its * fine * for now.

External Port Internal Port Container Name URL (if reachable from internet)
80 80 nginx-proxy ALL
9010 3306 mysql
9032 80 markham8-blog 8thmarkham.com
9031 80 markham8-leaders leaders.8thmarkham.com
9040 80 csc309-tb-exchange uoftextbookexchange.timothylock.ca
27017 27017 csc309-mongodb
9050         80           tim-Pi-monitor   homemonitordemo.timothylock.ca    
9070 80 computers-with-tim computerswithtim.ml
9080 80 nextcloud data.timothylock.ca
8123 8123 home-assistant
10000 8080 utat-inventory-backend utatinventorybe.timothylock.ca
10010 80 calendar calendar.timothylock.ca
10020 9090 inventory-personal inventory.timothylock.ca
10021 9090 inventory-demo inventorydemo.timothylock.ca
10022 9090 inventory-aero inventoryaero.utat.ca
10030 80 home-assistant-re home.timothylock.ca
10040 80 php-sandbox php-sandbox.timothylock.ca
10050 8080 twilio-buzzer-connector buzzer.timothylock.ca
10060 80 urlshortener r.timothylock.ca
10070 80 portainer
10080 80 mirror mirror.timothylock.ca
10090 80 rtorrent

About

All of the services running on my server

License:MIT License


Languages

Language:PHP 50.1%Language:DIGITAL Command Language 19.1%Language:CSS 14.2%Language:JavaScript 13.1%Language:HTML 2.5%Language:Roff 0.9%Language:Click 0.1%Language:Shell 0.0%Language:Hack 0.0%Language:Python 0.0%Language:TSQL 0.0%Language:Dockerfile 0.0%Language:Makefile 0.0%Language:Go 0.0%