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
bitwarden/data
vaultwarden/data
web/**
!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:
server:
image: gitea/gitea:1.13.6
image: gitea/gitea:latest
container_name: gitea
environment:
- 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 vaultwarden
172.31.30.78 gitea
172.31.30.78 motioneye
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 "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;
}
# 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
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/
echo "Done"
# echo "Starting MotionEye..."
# cd motioneye/
# docker-compose up -d
# cd /home/ubuntu/
# echo "Done"
echo "Starting blog..."
cd web/blog/
docker-compose up -d

View File

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