From 53ef8057a4264f593ab29f813728745de96d5363 Mon Sep 17 00:00:00 2001 From: Scott Gibb Date: Mon, 28 Oct 2024 18:06:01 +0000 Subject: [PATCH] Adding Scratch Map --- PiHome/Apps/.env | 1 + PiHome/Apps/docker-compose.yml | 17 +++++++++++++++++ PiHome/Networking/docker-compose.yml | 2 +- PiHome/Networking/nginx.conf | 10 ++++++++++ PiHome/ReadMe.md | 4 ++++ PiHome/docker-compose.sh | 1 + 6 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 PiHome/Apps/.env create mode 100644 PiHome/Apps/docker-compose.yml diff --git a/PiHome/Apps/.env b/PiHome/Apps/.env new file mode 100644 index 0000000..d6cd6f4 --- /dev/null +++ b/PiHome/Apps/.env @@ -0,0 +1 @@ +COMPOSE_PROJECT_NAME=apps diff --git a/PiHome/Apps/docker-compose.yml b/PiHome/Apps/docker-compose.yml new file mode 100644 index 0000000..d50cca0 --- /dev/null +++ b/PiHome/Apps/docker-compose.yml @@ -0,0 +1,17 @@ +--- + +version: "3" + +services: + scratchmap: + container_name: scratchmap + image: ad3m3r5/scratch-map:latest + ports: + - "3000:3000" + environment: + DBLOCATION: '/data' + volumes: + - type: bind + source: /home/pi/docker-mounts/scratchmap + target: /data + restart: unless-stopped diff --git a/PiHome/Networking/docker-compose.yml b/PiHome/Networking/docker-compose.yml index c474176..5c7fc2c 100644 --- a/PiHome/Networking/docker-compose.yml +++ b/PiHome/Networking/docker-compose.yml @@ -37,7 +37,7 @@ services: source: /home/pi/config/nginx/etc/nginx/templates target: /etc/nginx/templates - type: bind - source: /home/pi/config/nginx/etc/nginx/nginx.conf + source: /home/pi/Home-Lab-Containers/PiHome/Networking/nginx.conf target: /etc/nginx/nginx.conf ports: - "80:80" diff --git a/PiHome/Networking/nginx.conf b/PiHome/Networking/nginx.conf index 9492e1f..09b27be 100644 --- a/PiHome/Networking/nginx.conf +++ b/PiHome/Networking/nginx.conf @@ -89,6 +89,16 @@ http { } + server { + listen 80; + server_name scratchmap.home; + + location / { + proxy_pass http://192.168.0.68:3000; + } + + + } } diff --git a/PiHome/ReadMe.md b/PiHome/ReadMe.md index 684cdc6..0d28eed 100644 --- a/PiHome/ReadMe.md +++ b/PiHome/ReadMe.md @@ -6,3 +6,7 @@ For the Home Pi, the following docker stacks are enabled: - utils - iot +- networking +- apps +- security + diff --git a/PiHome/docker-compose.sh b/PiHome/docker-compose.sh index 86c6f20..2aae879 100644 --- a/PiHome/docker-compose.sh +++ b/PiHome/docker-compose.sh @@ -6,6 +6,7 @@ directories=( "./Security/" "./Networking/" "./IOT/" + "./Apps/" # "./Finances/" )