Compare commits
11 Commits
afccf894a1
...
23d46a1c8b
| Author | SHA1 | Date | |
|---|---|---|---|
| 23d46a1c8b | |||
|
|
f14d9b0335 | ||
| ecfb2ecef9 | |||
| 4325b1dda5 | |||
|
|
d77a8d2121 | ||
|
|
4d90ebd033 | ||
| edd157d241 | |||
|
|
b5f2e74bd0 | ||
|
|
674708ef35 | ||
|
|
f8d659c171 | ||
| 51ffe79823 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,6 @@
|
||||
nginx-reverse-proxy/ssl
|
||||
bitwarden/data
|
||||
vaultwarden/data
|
||||
web/**
|
||||
!web/blog
|
||||
web/blog/**
|
||||
|
||||
7
README.md
Normal file
7
README.md
Normal 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.
|
||||
@@ -7,7 +7,7 @@ networks:
|
||||
|
||||
services:
|
||||
server:
|
||||
image: gitea/gitea:1.13.6
|
||||
image: gitea/gitea:latest
|
||||
container_name: gitea
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
|
||||
@@ -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."
|
||||
|
||||
@@ -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
8
my_services.service
Normal 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
|
||||
@@ -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
19
reboot.sh
Normal 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/
|
||||
6
start.sh
6
start.sh
@@ -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
|
||||
|
||||
@@ -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'
|
||||
Reference in New Issue
Block a user