test release 1: debugging main script

This commit is contained in:
2026-03-04 06:55:29 +01:00
parent c9e37abc63
commit e6a55c1e01
32 changed files with 1233 additions and 17 deletions

0
README.md Normal file
View File

View File

@@ -99,14 +99,43 @@ echo "Docker installation complete."
docker --version docker --version
# install dockge # install dockge
mkdir -p /opt/stacks /opt/dockge mkdir -p /opt/stacks /opt/dockge /opt/scripts
chmod -R 775 /opt/stacks
cd /opt/dockge cd /opt/dockge
# Download your compose.yaml # Download your compose.yaml
curl "https://dockge.kuma.pet/compose.yaml?port=5001&stacksPath=%2Fopt%2Fstacks" --output compose.yaml curl "https://dockge.kuma.pet/compose.yaml?port=5001&stacksPath=%2Fopt%2Fstacks" --output compose.yaml
# write configuration to compose files
cp -r ./stacks/* /opt/stacks/
cp -r ./scripts/* /opt/scripts/
#adminemail
replace_string_recursive "/opt/stacks" "?adminemail?" $adminemail
#adminpass
replace_string_recursive "/opt/stacks" "?adminpass?" $adminpass
#timezone
replace_string_recursive "/opt/stacks" "?timezone?" $timezone
#domain
replace_string_recursive "/opt/stacks" "?domain?" $domain
#publicip
replace_string_recursive "/opt/stacks" "?publicip?" $publicip
#localip
replace_string_recursive "/opt/stacks" "?localip?" $localip
#ownclouddbpass
replace_string_recursive "/opt/stacks" "?ownclouddbpass?" $ownclouddbpass
#ownclouddbrootpass
replace_string_recursive "/opt/stacks" "?ownclouddbrootpass?" $ownclouddbrootpass
#convertxJWT
replace_string_recursive "/opt/stacks" "?convertxJWT?" $convertxJWT
#bookstackkey
replace_string_recursive "/opt/stacks" "?bookstackkey?" $bookstackkey
#bookstackdbpass
replace_string_recursive "/opt/stacks" "?bookstackdbpass?" $bookstackdbpass
#bookstackdbrootpass
replace_string_recursive "/opt/stacks" "?bookstackdbrootpass?" $bookstackdbrootpass
#onlyofficeJWT
replace_string_recursive "/opt/stacks" "?onlyofficeJWT?" $onlyofficeJWT
# install mailcow to /opt/stacks/mailcow so it shows up in dockge # install mailcow to /opt/stacks/mailcow so it shows up in dockge

4
scripts/npm-config.sh Normal file
View File

@@ -0,0 +1,4 @@
# todo: create database.sqlite under /opt/stacks/npm/data/database.sqlite with hosts
# also todo: create nginx conf files.
# also todo: create user

View File

@@ -0,0 +1 @@
# todo: write post-install owncloud config script using OCscript

View File

@@ -12,8 +12,8 @@ services:
- ./fonts:/usr/local/share/fonts/custom:ro - ./fonts:/usr/local/share/fonts/custom:ro
restart: unless-stopped restart: unless-stopped
environment: environment:
JELLYFIN_PublishedServerUrl: https://video.$domain JELLYFIN_PublishedServerUrl: https://video.?domain?
TZ: $timezone TZ: ?timezone?
networks: networks:
dockge_default: dockge_default:
external: true external: true

View File

@@ -13,7 +13,7 @@ services:
# - '21:21' # FTP # - '21:21' # FTP
environment: environment:
TZ: $timezone TZ: ?timezone?
# Uncomment this if you want to change the location of # Uncomment this if you want to change the location of
# the SQLite DB file within the container # the SQLite DB file within the container
# DB_SQLITE_FILE: "/data/database.sqlite" # DB_SQLITE_FILE: "/data/database.sqlite"

Binary file not shown.

View File

@@ -0,0 +1,67 @@
# ------------------------------------------------------------
# docker.sdgserver.online
# ------------------------------------------------------------
map $scheme $hsts_header {
https "max-age=63072000; preload";
}
server {
set $forward_scheme http;
set $server "192.168.2.132";
set $port 5001;
listen 80;
listen [::]:80;
server_name docker.sdgserver.online;
http2 off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
access_log /data/logs/proxy-host-1_access.log proxy;
error_log /data/logs/proxy-host-1_error.log warn;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}

View File

@@ -0,0 +1,59 @@
# ------------------------------------------------------------
# proxy.sdgserver.online
# ------------------------------------------------------------
map $scheme $hsts_header {
https "max-age=63072000; preload";
}
server {
set $forward_scheme http;
set $server "192.168.2.132";
set $port 81;
listen 80;
listen [::]:80;
server_name proxy.sdgserver.online;
http2 off;
access_log /data/logs/proxy-host-10_access.log proxy;
error_log /data/logs/proxy-host-10_error.log warn;
location / {
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}

View File

@@ -0,0 +1,67 @@
# ------------------------------------------------------------
# office.sdgserver.online
# ------------------------------------------------------------
map $scheme $hsts_header {
https "max-age=63072000; preload";
}
server {
set $forward_scheme http;
set $server "documentserver";
set $port 80;
listen 80;
listen [::]:80;
server_name office.sdgserver.online;
http2 off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
access_log /data/logs/proxy-host-11_access.log proxy;
error_log /data/logs/proxy-host-11_error.log warn;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}

View File

@@ -0,0 +1,67 @@
# ------------------------------------------------------------
# cloud.sdgserver.online
# ------------------------------------------------------------
map $scheme $hsts_header {
https "max-age=63072000; preload";
}
server {
set $forward_scheme http;
set $server "owncloud_server";
set $port 8080;
listen 80;
listen [::]:80;
server_name cloud.sdgserver.online;
http2 off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
access_log /data/logs/proxy-host-12_access.log proxy;
error_log /data/logs/proxy-host-12_error.log warn;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}

View File

@@ -0,0 +1,67 @@
# ------------------------------------------------------------
# www.sdgserver.online
# ------------------------------------------------------------
map $scheme $hsts_header {
https "max-age=63072000; preload";
}
server {
set $forward_scheme http;
set $server "site";
set $port 80;
listen 80;
listen [::]:80;
server_name www.sdgserver.online;
http2 off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
access_log /data/logs/proxy-host-13_access.log proxy;
error_log /data/logs/proxy-host-13_error.log warn;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}

View File

@@ -0,0 +1,67 @@
# ------------------------------------------------------------
# vault.sdgserver.online
# ------------------------------------------------------------
map $scheme $hsts_header {
https "max-age=63072000; preload";
}
server {
set $forward_scheme http;
set $server "vaultwarden";
set $port 80;
listen 80;
listen [::]:80;
server_name vault.sdgserver.online;
http2 off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
access_log /data/logs/proxy-host-14_access.log proxy;
error_log /data/logs/proxy-host-14_error.log warn;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}

View File

@@ -0,0 +1,67 @@
# ------------------------------------------------------------
# vpn.sdgserver.online
# ------------------------------------------------------------
map $scheme $hsts_header {
https "max-age=63072000; preload";
}
server {
set $forward_scheme http;
set $server "wireguard";
set $port 51821;
listen 80;
listen [::]:80;
server_name vpn.sdgserver.online;
http2 off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
access_log /data/logs/proxy-host-15_access.log proxy;
error_log /data/logs/proxy-host-15_error.log warn;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}

View File

@@ -0,0 +1,67 @@
# ------------------------------------------------------------
# mail.sdgserver.online
# ------------------------------------------------------------
map $scheme $hsts_header {
https "max-age=63072000; preload";
}
server {
set $forward_scheme https;
set $server "192.168.2.132";
set $port 1443;
listen 80;
listen [::]:80;
server_name mail.sdgserver.online;
http2 off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
access_log /data/logs/proxy-host-16_access.log proxy;
error_log /data/logs/proxy-host-16_error.log warn;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}

View File

@@ -0,0 +1,59 @@
# ------------------------------------------------------------
# dozzle.sdgserver.online
# ------------------------------------------------------------
map $scheme $hsts_header {
https "max-age=63072000; preload";
}
server {
set $forward_scheme http;
set $server "dozzle";
set $port 8080;
listen 80;
listen [::]:80;
server_name dozzle.sdgserver.online;
http2 off;
access_log /data/logs/proxy-host-17_access.log proxy;
error_log /data/logs/proxy-host-17_error.log warn;
location / {
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}

View File

@@ -0,0 +1,59 @@
# ------------------------------------------------------------
# dns.sdgserver.online
# ------------------------------------------------------------
map $scheme $hsts_header {
https "max-age=63072000; preload";
}
server {
set $forward_scheme http;
set $server "pihole";
set $port 80;
listen 80;
listen [::]:80;
server_name dns.sdgserver.online;
http2 off;
access_log /data/logs/proxy-host-18_access.log proxy;
error_log /data/logs/proxy-host-18_error.log warn;
location / {
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}

View File

@@ -0,0 +1,67 @@
# ------------------------------------------------------------
# docs.sdgserver.online
# ------------------------------------------------------------
map $scheme $hsts_header {
https "max-age=63072000; preload";
}
server {
set $forward_scheme http;
set $server "bookstack";
set $port 80;
listen 80;
listen [::]:80;
server_name docs.sdgserver.online;
http2 off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
access_log /data/logs/proxy-host-2_access.log proxy;
error_log /data/logs/proxy-host-2_error.log warn;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}

View File

@@ -0,0 +1,67 @@
# ------------------------------------------------------------
# browser.sdgserver.online
# ------------------------------------------------------------
map $scheme $hsts_header {
https "max-age=63072000; preload";
}
server {
set $forward_scheme http;
set $server "browser";
set $port 80;
listen 80;
listen [::]:80;
server_name browser.sdgserver.online;
http2 off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
access_log /data/logs/proxy-host-3_access.log proxy;
error_log /data/logs/proxy-host-3_error.log warn;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}

View File

@@ -0,0 +1,67 @@
# ------------------------------------------------------------
# convert.sdgserver.online
# ------------------------------------------------------------
map $scheme $hsts_header {
https "max-age=63072000; preload";
}
server {
set $forward_scheme http;
set $server "convertx";
set $port 3000;
listen 80;
listen [::]:80;
server_name convert.sdgserver.online;
http2 off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
access_log /data/logs/proxy-host-4_access.log proxy;
error_log /data/logs/proxy-host-4_error.log warn;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}

View File

@@ -0,0 +1,67 @@
# ------------------------------------------------------------
# dash.sdgserver.online
# ------------------------------------------------------------
map $scheme $hsts_header {
https "max-age=63072000; preload";
}
server {
set $forward_scheme http;
set $server "dashboard";
set $port 80;
listen 80;
listen [::]:80;
server_name dash.sdgserver.online;
http2 off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
access_log /data/logs/proxy-host-5_access.log proxy;
error_log /data/logs/proxy-host-5_error.log warn;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}

View File

@@ -0,0 +1,67 @@
# ------------------------------------------------------------
# download.sdgserver.online
# ------------------------------------------------------------
map $scheme $hsts_header {
https "max-age=63072000; preload";
}
server {
set $forward_scheme http;
set $server "192.168.2.132";
set $port 3000;
listen 80;
listen [::]:80;
server_name download.sdgserver.online;
http2 off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
access_log /data/logs/proxy-host-6_access.log proxy;
error_log /data/logs/proxy-host-6_error.log warn;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}

View File

@@ -0,0 +1,67 @@
# ------------------------------------------------------------
# tools.sdgserver.online
# ------------------------------------------------------------
map $scheme $hsts_header {
https "max-age=63072000; preload";
}
server {
set $forward_scheme http;
set $server "it-tools";
set $port 80;
listen 80;
listen [::]:80;
server_name tools.sdgserver.online;
http2 off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
access_log /data/logs/proxy-host-7_access.log proxy;
error_log /data/logs/proxy-host-7_error.log warn;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}

View File

@@ -0,0 +1,67 @@
# ------------------------------------------------------------
# video.sdgserver.online
# ------------------------------------------------------------
map $scheme $hsts_header {
https "max-age=63072000; preload";
}
server {
set $forward_scheme http;
set $server "jellyfin";
set $port 8096;
listen 80;
listen [::]:80;
server_name video.sdgserver.online;
http2 off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
access_log /data/logs/proxy-host-8_access.log proxy;
error_log /data/logs/proxy-host-8_error.log warn;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}

View File

@@ -0,0 +1,67 @@
# ------------------------------------------------------------
# status.sdgserver.online
# ------------------------------------------------------------
map $scheme $hsts_header {
https "max-age=63072000; preload";
}
server {
set $forward_scheme http;
set $server "uptime-kuma";
set $port 3001;
listen 80;
listen [::]:80;
server_name status.sdgserver.online;
http2 off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
access_log /data/logs/proxy-host-9_access.log proxy;
error_log /data/logs/proxy-host-9_error.log warn;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}

View File

@@ -10,7 +10,7 @@ services:
- 1.1.1.1 - 1.1.1.1
- 8.8.8.8 - 8.8.8.8
environment: environment:
JWT_SECRET: $onlyofficeJWT JWT_SECRET: ?onlyofficeJWT?
JWT_IN_BODY: true JWT_IN_BODY: true
networks: networks:
dockge_default: dockge_default:

View File

@@ -9,15 +9,15 @@ services:
- owncloud_db - owncloud_db
- owncloud_redis - owncloud_redis
environment: environment:
OWNCLOUD_DOMAIN: https://cloud.$domain OWNCLOUD_DOMAIN: https://cloud.?domain?
OWNCLOUD_TRUSTED_DOMAINS: localhost, cloud.$domain OWNCLOUD_TRUSTED_DOMAINS: localhost, cloud.?domain?
OWNCLOUD_DB_TYPE: mysql OWNCLOUD_DB_TYPE: mysql
OWNCLOUD_DB_NAME: owncloud OWNCLOUD_DB_NAME: owncloud
OWNCLOUD_DB_USERNAME: owncloud OWNCLOUD_DB_USERNAME: owncloud
OWNCLOUD_DB_PASSWORD: $ownclouddbpass OWNCLOUD_DB_PASSWORD: ?ownclouddbpass?
OWNCLOUD_DB_HOST: owncloud_db OWNCLOUD_DB_HOST: owncloud_db
OWNCLOUD_ADMIN_USERNAME: $adminemail OWNCLOUD_ADMIN_USERNAME: ?adminemail?
OWNCLOUD_ADMIN_PASSWORD: $adminpass OWNCLOUD_ADMIN_PASSWORD: ?adminpass?
OWNCLOUD_MYSQL_UTF8MB4: true OWNCLOUD_MYSQL_UTF8MB4: true
OWNCLOUD_REDIS_ENABLED: true OWNCLOUD_REDIS_ENABLED: true
OWNCLOUD_REDIS_HOST: owncloud_redis OWNCLOUD_REDIS_HOST: owncloud_redis
@@ -36,9 +36,9 @@ services:
networks: networks:
- dockge_default - dockge_default
environment: environment:
- MYSQL_ROOT_PASSWORD=$ownclouddbrootpass - MYSQL_ROOT_PASSWORD=?ownclouddbrootpass?
- MYSQL_USER=owncloud - MYSQL_USER=owncloud
- MYSQL_PASSWORD=$ownclouddbpass - MYSQL_PASSWORD=?ownclouddbpass?
- MYSQL_DATABASE=owncloud - MYSQL_DATABASE=owncloud
- MARIADB_AUTO_UPGRADE=1 - MARIADB_AUTO_UPGRADE=1
command: ["--max-allowed-packet=128M", "--innodb-log-file-size=64M"] command: ["--max-allowed-packet=128M", "--innodb-log-file-size=64M"]

View File

@@ -9,7 +9,7 @@ services:
- 53:53/udp - 53:53/udp
environment: environment:
TZ: Europe/Amsterdam TZ: Europe/Amsterdam
FTLCONF_WEBSERVER_API_PASSWORD: z5fGWz2i0q FTLCONF_WEBSERVER_API_PASSWORD: ?adminpass?
volumes: volumes:
- ./config:/etc/pihole - ./config:/etc/pihole
- ./dns:/etc/dnsmasq.d - ./dns:/etc/dnsmasq.d

View File

@@ -6,7 +6,7 @@ services:
networks: networks:
- dockge_default - dockge_default
environment: environment:
TZ: $timezone TZ: ?timezone?
volumes: volumes:
- ./config:/config - ./config:/config
networks: networks:

View File

@@ -2,8 +2,8 @@ services:
wireguard: wireguard:
container_name: wireguard container_name: wireguard
environment: environment:
WG_HOST: $publicip WG_HOST: ?publicip?
PASSWORD: $adminpass PASSWORD: ?adminpass?
volumes: volumes:
- ./wireguard:/etc/wireguard - ./wireguard:/etc/wireguard
ports: ports:

0
todo.txt Normal file
View File