Compare commits

...

11 Commits

10 changed files with 58 additions and 34 deletions

1
.gitignore vendored
View File

@@ -1,5 +1,6 @@
nginx-reverse-proxy/ssl nginx-reverse-proxy/ssl
bitwarden/data bitwarden/data
vaultwarden/data
web/** web/**
!web/blog !web/blog
web/blog/** web/blog/**

7
README.md Normal file
View File

@@ -0,0 +1,7 @@
# Steps to reinstall
- Clone this repo onto new server
- Run light-install.sh
- Update the hosts file as mentioned in the output of the light-install
- Run start.sh
That should do it.

View File

@@ -7,7 +7,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:1.13.6 image: gitea/gitea:latest
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000

View File

@@ -25,7 +25,6 @@ echo "Don't forget to edit /etc/hosts to add the new sites
172.31.30.78 blog 172.31.30.78 blog
172.31.30.78 vaultwarden 172.31.30.78 vaultwarden
172.31.30.78 gitea 172.31.30.78 gitea
172.31.30.78 motioneye
172.31.30.78 homeassistant" 172.31.30.78 homeassistant"
echo "Also, get the blog code deployed to the git instance and pull it back down here to get the blog running." echo "Also, get the blog code deployed to the git instance and pull it back down here to get the blog running."
echo "The blog is tricky, because it needs the theme to work, don't forget to clone that as well." echo "The blog is tricky, because it needs the theme to work, don't forget to clone that as well."

View File

@@ -1,22 +0,0 @@
version: "3.5"
services:
motioneye:
image: ccrisan/motioneye:master-armhf
container_name: motioneye
networks:
- motioneye
expose:
- "8081"
- "8765"
volumes:
- etc_motioneye:/etc/motioneye
- var_lib_motioneye:/var/lib/motioneye
volumes:
etc_motioneye:
var_lib_motioneye:
networks:
motioneye:
external:
name: motioneye

8
my_services.service Normal file
View File

@@ -0,0 +1,8 @@
[Unit]
Description=Launch Service for my self-hosted services.
[Service]
ExecStart=/home/ubuntu/start.sh &
[Install]
WantedBy=multi-user.target

View File

@@ -171,6 +171,24 @@ server {
error_log /var/log/nginx/minecraft_error.log error; error_log /var/log/nginx/minecraft_error.log error;
} }
# Photoprism config
server {
listen 80;
listen 443;
server_name pics.colindiem.com;
location / {
include /etc/nginx/includes/proxy.conf;
proxy_pass http://192.168.1.33:2342;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
access_log /var/log/nginx/photoprism_access.log combined;
error_log /var/log/nginx/photoprism_error.log error;
}
# Default # Default
server { server {
listen 80 default_server; listen 80 default_server;

19
reboot.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
clear
cd /home/ubuntu/
cd vaultwarden/
docker-compose up -d
cd /home/ubuntu/
cd gitea/
docker-compose up -d
cd /home/ubuntu/
cd web/blog/
docker-compose up -d
cd /home/ubuntu/
cd nginx-reverse-proxy/
docker-compose up -d
cd /home/ubuntu/

View File

@@ -19,12 +19,6 @@ docker-compose up -d
cd /home/ubuntu/ cd /home/ubuntu/
echo "Done" echo "Done"
# echo "Starting MotionEye..."
# cd motioneye/
# docker-compose up -d
# cd /home/ubuntu/
# echo "Done"
echo "Starting blog..." echo "Starting blog..."
cd web/blog/ cd web/blog/
docker-compose up -d docker-compose up -d

View File

@@ -1,13 +1,13 @@
version: '3' version: '3'
services: services:
bitwarden: vaultwarden:
container_name: bitwarden container_name: vaultwarden
image: bitwardenrs/server image: vaultwarden/server
restart: always restart: always
volumes: volumes:
- ./data:/data - ./data:/data
expose: expose:
- '80' - 80
environment: environment:
WEBSOCKET_ENABLED: 'true' WEBSOCKET_ENABLED: 'true'
SIGNUPS_ALLOWED: 'true' SIGNUPS_ALLOWED: 'true'