Compare commits
2 Commits
49c75768ba
...
e6a55c1e01
| Author | SHA1 | Date | |
|---|---|---|---|
| e6a55c1e01 | |||
| c9e37abc63 |
516
deploy.sh
516
deploy.sh
@@ -7,6 +7,33 @@ if [[ "$EUID" -ne 0 ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# recursive replace function
|
||||||
|
replace_string_recursive() {
|
||||||
|
local DIRECTORY="$1"
|
||||||
|
local OLD_STRING="$2"
|
||||||
|
local NEW_STRING="$3"
|
||||||
|
|
||||||
|
if [ ! -d "$DIRECTORY" ]; then
|
||||||
|
echo "Error: Directory '$DIRECTORY' does not exist."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Starting replacement of '$OLD_STRING' with '$NEW_STRING' in '$DIRECTORY'..."
|
||||||
|
find "$DIRECTORY" -type f -exec sed -i "s/$OLD_STRING/$NEW_STRING/g" {} +
|
||||||
|
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "Replacement completed successfully."
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
echo "An error occurred during replacement."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# example use
|
||||||
|
# replace_string_recursive "/path/to/directory" "oldstring" "newstring"
|
||||||
|
|
||||||
|
|
||||||
# what this script needs to do:
|
# what this script needs to do:
|
||||||
|
|
||||||
# request all install parameters needed from user
|
# request all install parameters needed from user
|
||||||
@@ -37,19 +64,6 @@ bookstackdbpass="$(rand_hex)"
|
|||||||
bookstackdbrootpass="$(rand_hex)"
|
bookstackdbrootpass="$(rand_hex)"
|
||||||
onlyofficeJWT="$(rand_hex)"
|
onlyofficeJWT="$(rand_hex)"
|
||||||
|
|
||||||
# ---- Debug print (optional — remove in production) ----
|
|
||||||
echo "Configuration summary:"
|
|
||||||
printf "%-25s %s\n" \
|
|
||||||
"Admin email:" "$adminemail" \
|
|
||||||
"Timezone:" "$timezone" \
|
|
||||||
"Domain:" "$domain" \
|
|
||||||
"Public IP:" "$publicip" \
|
|
||||||
"Local IP:" "$localip"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# install docker
|
# install docker
|
||||||
echo "Updating apt and installing prerequisites..."
|
echo "Updating apt and installing prerequisites..."
|
||||||
apt update
|
apt update
|
||||||
@@ -84,459 +98,45 @@ apt install -y \
|
|||||||
echo "Docker installation complete."
|
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
|
||||||
|
|
||||||
# Start the Server
|
# write configuration to compose files
|
||||||
# docker compose up -d
|
cp -r ./stacks/* /opt/stacks/
|
||||||
|
cp -r ./scripts/* /opt/scripts/
|
||||||
|
|
||||||
# create directories in /opt/stacks for containers
|
#adminemail
|
||||||
# directories needed: npm,dozzle,kuma,browser,site,owncloud,vaultwarden,wireguard,convertx,it-tools,bookstack,jellyfin,onlyoffice,downloader,dashboard,pihole
|
replace_string_recursive "/opt/stacks" "?adminemail?" $adminemail
|
||||||
cd /opt/stacks
|
#adminpass
|
||||||
mkdir /opt/stacks/{npm,dozzle,kuma,browser,site,owncloud,vaultwarden,wireguard,convertx,it-tools,bookstack,jellyfin,onlyoffice,downloader,dashboard,pihole}
|
replace_string_recursive "/opt/stacks" "?adminpass?" $adminpass
|
||||||
# write docker setup for each component to correct directories
|
#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
|
||||||
|
|
||||||
# Nginx Proxy:
|
|
||||||
# needed: compose.yml, auto-generated proxy host files
|
|
||||||
# variables needed: domain, admin email, admin pass
|
|
||||||
cat > /opt/stacks/npm/compose.yml <<EOF
|
|
||||||
services:
|
|
||||||
app:
|
|
||||||
image: jc21/nginx-proxy-manager:latest
|
|
||||||
restart: unless-stopped
|
|
||||||
networks:
|
|
||||||
- dockge_default
|
|
||||||
ports:
|
|
||||||
# These ports are in format <host-port>:<container-port>
|
|
||||||
- 80:80 # Public HTTP Port
|
|
||||||
- 443:443 # Public HTTPS Port
|
|
||||||
- 81:81 # Admin Web Port
|
|
||||||
# Add any other Stream port you want to expose
|
|
||||||
# - '21:21' # FTP
|
|
||||||
|
|
||||||
environment:
|
|
||||||
TZ: $timezone
|
|
||||||
# Uncomment this if you want to change the location of
|
|
||||||
# the SQLite DB file within the container
|
|
||||||
# DB_SQLITE_FILE: "/data/database.sqlite"
|
|
||||||
|
|
||||||
# Uncomment this if IPv6 is not enabled on your host
|
|
||||||
# DISABLE_IPV6: 'true'
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- ./data:/data
|
|
||||||
- ./letsencrypt:/etc/letsencrypt
|
|
||||||
networks:
|
|
||||||
dockge_default:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Uptime Kuma:
|
|
||||||
# needed: compose.yml
|
|
||||||
# variables needed: admin email, admin pass
|
|
||||||
cat > /opt/stacks/kuma/compose.yml <<EOF
|
|
||||||
|
|
||||||
services:
|
|
||||||
uptime-kuma:
|
|
||||||
image: louislam/uptime-kuma:2
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
|
||||||
- ./data:/app/data
|
|
||||||
networks:
|
|
||||||
- dockge_default
|
|
||||||
dns:
|
|
||||||
- 1.1.1.1
|
|
||||||
- 8.8.8.8
|
|
||||||
networks:
|
|
||||||
dockge_default:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# File Browser:
|
|
||||||
# needed: compose.yml
|
|
||||||
# variables needed: admin email, admin pass
|
|
||||||
cat > /opt/stacks/browser/compose.yml <<EOF
|
|
||||||
|
|
||||||
services:
|
|
||||||
browser:
|
|
||||||
image: filebrowser/filebrowser
|
|
||||||
privileged: true
|
|
||||||
container_name: browser
|
|
||||||
user: root
|
|
||||||
networks:
|
|
||||||
- dockge_default
|
|
||||||
volumes:
|
|
||||||
- /opt/stacks:/srv/stacks
|
|
||||||
- ./filebrowser.db:/database.db
|
|
||||||
restart: unless-stopped
|
|
||||||
networks:
|
|
||||||
dockge_default:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Main Site:
|
|
||||||
# needed: compose.yml
|
|
||||||
cat > /opt/stacks/site/compose.yml <<EOF
|
|
||||||
services:
|
|
||||||
site:
|
|
||||||
image: lscr.io/linuxserver/nginx:latest
|
|
||||||
restart: unless-stopped
|
|
||||||
user: root
|
|
||||||
networks:
|
|
||||||
- dockge_default
|
|
||||||
environment:
|
|
||||||
TZ: $timezone
|
|
||||||
volumes:
|
|
||||||
- ./config:/config
|
|
||||||
networks:
|
|
||||||
dockge_default:
|
|
||||||
external: true
|
|
||||||
EOF
|
|
||||||
|
|
||||||
|
|
||||||
# owncloud:
|
|
||||||
# needed: compose.yml, additional config?
|
|
||||||
# variables needed: admin email, admin pass
|
|
||||||
cat > /opt/stacks/owncloud/compose.yml <<EOF
|
|
||||||
|
|
||||||
services:
|
|
||||||
owncloud_server:
|
|
||||||
image: owncloud/server:latest
|
|
||||||
container_name: owncloud_server
|
|
||||||
restart: always
|
|
||||||
networks:
|
|
||||||
- dockge_default
|
|
||||||
depends_on:
|
|
||||||
- owncloud_db
|
|
||||||
- owncloud_redis
|
|
||||||
environment:
|
|
||||||
OWNCLOUD_DOMAIN: https://cloud.$domain
|
|
||||||
OWNCLOUD_TRUSTED_DOMAINS: localhost, cloud.$domain
|
|
||||||
OWNCLOUD_DB_TYPE: mysql
|
|
||||||
OWNCLOUD_DB_NAME: owncloud
|
|
||||||
OWNCLOUD_DB_USERNAME: owncloud
|
|
||||||
OWNCLOUD_DB_PASSWORD: $ownclouddbpass
|
|
||||||
OWNCLOUD_DB_HOST: owncloud_db
|
|
||||||
OWNCLOUD_ADMIN_USERNAME: $adminemail
|
|
||||||
OWNCLOUD_ADMIN_PASSWORD: $adminpass
|
|
||||||
OWNCLOUD_MYSQL_UTF8MB4: true
|
|
||||||
OWNCLOUD_REDIS_ENABLED: true
|
|
||||||
OWNCLOUD_REDIS_HOST: owncloud_redis
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "/usr/bin/healthcheck"]
|
|
||||||
interval: 30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 5
|
|
||||||
volumes:
|
|
||||||
- ./data:/mnt/data
|
|
||||||
|
|
||||||
owncloud_db:
|
|
||||||
image: mariadb:10.11 # minimum required ownCloud version is 10.9
|
|
||||||
container_name: owncloud_db
|
|
||||||
restart: always
|
|
||||||
networks:
|
|
||||||
- dockge_default
|
|
||||||
environment:
|
|
||||||
- MYSQL_ROOT_PASSWORD=$ownclouddbrootpass
|
|
||||||
- MYSQL_USER=owncloud
|
|
||||||
- MYSQL_PASSWORD=$ownclouddbpass
|
|
||||||
- MYSQL_DATABASE=owncloud
|
|
||||||
- MARIADB_AUTO_UPGRADE=1
|
|
||||||
command: ["--max-allowed-packet=128M", "--innodb-log-file-size=64M"]
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "mysqladmin", "ping", "-u", "root", "--password=owncloud"]
|
|
||||||
interval: 10s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
|
||||||
volumes:
|
|
||||||
- ./mysql:/var/lib/mysql
|
|
||||||
|
|
||||||
owncloud_redis:
|
|
||||||
image: redis:6
|
|
||||||
container_name: owncloud_redis
|
|
||||||
restart: always
|
|
||||||
networks:
|
|
||||||
- dockge_default
|
|
||||||
command: ["--databases", "1"]
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "redis-cli", "ping"]
|
|
||||||
interval: 10s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
|
||||||
volumes:
|
|
||||||
- ./redis:/data
|
|
||||||
networks:
|
|
||||||
dockge_default:
|
|
||||||
external: true
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# vaultwarden:
|
|
||||||
# needed: compose.yml
|
|
||||||
cat > /opt/stacks/vaultwarden/compose.yml <<EOF
|
|
||||||
|
|
||||||
services:
|
|
||||||
vaultwarden:
|
|
||||||
container_name: vaultwarden
|
|
||||||
image: vaultwarden/server:latest
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
|
||||||
- ./data:/data/
|
|
||||||
networks:
|
|
||||||
- dockge_default
|
|
||||||
networks:
|
|
||||||
dockge_default:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# wireguard-easy:
|
|
||||||
# needed: compose.yml
|
|
||||||
# variables needed: admin email, admin pass
|
|
||||||
cat > /opt/stacks/wireguard/compose.yml <<EOF
|
|
||||||
|
|
||||||
services:
|
|
||||||
wireguard:
|
|
||||||
container_name: wireguard
|
|
||||||
environment:
|
|
||||||
WG_HOST: $publicip
|
|
||||||
PASSWORD: $adminpass
|
|
||||||
volumes:
|
|
||||||
- ./wireguard:/etc/wireguard
|
|
||||||
ports:
|
|
||||||
-51820/udp
|
|
||||||
networks:
|
|
||||||
- dockge_default
|
|
||||||
cap_add:
|
|
||||||
- NET_ADMIN
|
|
||||||
- SYS_MODULE
|
|
||||||
sysctls:
|
|
||||||
- net.ipv4.conf.all.src_valid_mark=1
|
|
||||||
- net.ipv4.ip_forward=1
|
|
||||||
restart: unless-stopped
|
|
||||||
image: weejewel/wg-easy
|
|
||||||
networks:
|
|
||||||
dockge_default:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# convertx:
|
|
||||||
# needed: compose.yml
|
|
||||||
cat > /opt/stacks/convertx/compose.yml <<EOF
|
|
||||||
|
|
||||||
services:
|
|
||||||
convertx:
|
|
||||||
image: ghcr.io/c4illin/convertx
|
|
||||||
container_name: convertx
|
|
||||||
restart: unless-stopped
|
|
||||||
networks:
|
|
||||||
- dockge_default
|
|
||||||
environment:
|
|
||||||
JWT_SECRET: $convertxJWT
|
|
||||||
HTTP_ALLOWED: true
|
|
||||||
ALLOW_UNAUTHENTICATED: true
|
|
||||||
ACCOUNT_REGISTRATION: false
|
|
||||||
volumes:
|
|
||||||
- ./data:/app/data
|
|
||||||
networks:
|
|
||||||
dockge_default:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# it-tools:
|
|
||||||
# needed: compose.yml
|
|
||||||
cat > /opt/stacks/it-tools/compose.yml <<EOF
|
|
||||||
|
|
||||||
services:
|
|
||||||
it-tools:
|
|
||||||
container_name: it-tools
|
|
||||||
restart: unless-stopped
|
|
||||||
networks:
|
|
||||||
- dockge_default
|
|
||||||
image: corentinth/it-tools:latest
|
|
||||||
networks:
|
|
||||||
dockge_default:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# bookstack:
|
|
||||||
# needed: compose.yml
|
|
||||||
# variables needed: admin email, admin pass
|
|
||||||
cat > /opt/stacks/bookstack/compose.yml <<EOF
|
|
||||||
|
|
||||||
services:
|
|
||||||
bookstack:
|
|
||||||
image: lscr.io/linuxserver/bookstack:latest
|
|
||||||
container_name: bookstack
|
|
||||||
environment:
|
|
||||||
TZ: $timezone
|
|
||||||
APP_URL: https://docs.$domain
|
|
||||||
APP_KEY: base64:$bookstackkey
|
|
||||||
DB_HOST: bookstack_db
|
|
||||||
DB_PORT: 3306
|
|
||||||
DB_DATABASE: bookstack
|
|
||||||
DB_USERNAME: bookstack
|
|
||||||
DB_PASSWORD: $bookstackdbpass
|
|
||||||
volumes:
|
|
||||||
- ./config:/config
|
|
||||||
networks:
|
|
||||||
- dockge_default
|
|
||||||
restart: unless-stopped
|
|
||||||
bookstack_db:
|
|
||||||
image: lscr.io/linuxserver/mariadb:latest
|
|
||||||
container_name: bookstack_db
|
|
||||||
networks:
|
|
||||||
- dockge_default
|
|
||||||
environment:
|
|
||||||
TZ: $timezone
|
|
||||||
MYSQL_ROOT_PASSWORD: $bookstackdbrootpass
|
|
||||||
MYSQL_DATABASE: bookstack
|
|
||||||
MYSQL_USER: bookstack
|
|
||||||
MYSQL_PASSWORD: $bookstackdbpass
|
|
||||||
restart: unless-stopped
|
|
||||||
networks:
|
|
||||||
dockge_default:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# jellyfin:
|
|
||||||
# needed: compose.yml
|
|
||||||
# variables needed: admin email, admin pass
|
|
||||||
|
|
||||||
cat > /opt/stacks/jellyfin/compose.yml <<EOF
|
|
||||||
|
|
||||||
services:
|
|
||||||
jellyfin:
|
|
||||||
image: jellyfin/jellyfin
|
|
||||||
container_name: jellyfin
|
|
||||||
user: root
|
|
||||||
networks:
|
|
||||||
- dockge_default
|
|
||||||
volumes:
|
|
||||||
- ./config:/config
|
|
||||||
- ./cache:/cache
|
|
||||||
- ./media:/media:ro
|
|
||||||
- ./fonts:/usr/local/share/fonts/custom:ro
|
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
|
||||||
JELLYFIN_PublishedServerUrl: https://video.$domain
|
|
||||||
TZ: $timezone
|
|
||||||
networks:
|
|
||||||
dockge_default:
|
|
||||||
external: true
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# onlyoffice:
|
|
||||||
# needed: compose.yml
|
|
||||||
cat > /opt/stacks/onlyoffice/compose.yml <<EOF
|
|
||||||
services:
|
|
||||||
documentserver:
|
|
||||||
stdin_open: true
|
|
||||||
tty: true
|
|
||||||
restart: always
|
|
||||||
networks:
|
|
||||||
- dockge_default
|
|
||||||
image: onlyoffice/documentserver
|
|
||||||
dns:
|
|
||||||
- 1.1.1.1
|
|
||||||
- 8.8.8.8
|
|
||||||
environment:
|
|
||||||
JWT_SECRET: $onlyofficeJWT
|
|
||||||
JWT_IN_BODY: true
|
|
||||||
networks:
|
|
||||||
dockge_default:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# dashboard:
|
|
||||||
# needed: compose.yml
|
|
||||||
cat > /opt/stacks/dashboard/compose.yml <<EOF
|
|
||||||
|
|
||||||
services:
|
|
||||||
dashboard:
|
|
||||||
image: lscr.io/linuxserver/heimdall:latest
|
|
||||||
container_name: dashboard
|
|
||||||
environment:
|
|
||||||
- PUID=1000
|
|
||||||
- PGID=1000
|
|
||||||
- TZ=$timezone
|
|
||||||
- ALLOW_INTERNAL_REQUESTS=false #optional
|
|
||||||
- APP_NAME=Home
|
|
||||||
volumes:
|
|
||||||
- ./Heimdall:/config
|
|
||||||
networks:
|
|
||||||
- dockge_default
|
|
||||||
restart: unless-stopped
|
|
||||||
networks:
|
|
||||||
dockge_default:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# dozzle
|
|
||||||
cat >/opt/stacks/dozzle/compose.yml <<EOF
|
|
||||||
services:
|
|
||||||
dozzle:
|
|
||||||
volumes:
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
networks:
|
|
||||||
- dockge_default
|
|
||||||
image: amir20/dozzle:latest
|
|
||||||
restart: always
|
|
||||||
networks:
|
|
||||||
dockge_default:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# pihole
|
|
||||||
cat >/opt/stacks/pihole/compose.yml <<EOF
|
|
||||||
services:
|
|
||||||
pihole:
|
|
||||||
container_name: pihole
|
|
||||||
image: pihole/pihole:latest
|
|
||||||
dns:
|
|
||||||
- 1.1.1.1
|
|
||||||
ports:
|
|
||||||
- 53:53/tcp
|
|
||||||
- 53:53/udp
|
|
||||||
environment:
|
|
||||||
TZ: Europe/Amsterdam
|
|
||||||
FTLCONF_WEBSERVER_API_PASSWORD: z5fGWz2i0q
|
|
||||||
volumes:
|
|
||||||
- ./config:/etc/pihole
|
|
||||||
- ./dns:/etc/dnsmasq.d
|
|
||||||
cap_add:
|
|
||||||
- NET_ADMIN
|
|
||||||
restart: unless-stopped
|
|
||||||
networks:
|
|
||||||
- dockge_default
|
|
||||||
networks:
|
|
||||||
dockge_default:
|
|
||||||
external: true
|
|
||||||
EOF
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# install mailcow to /opt/stacks/mailcow so it shows up in dockge
|
# install mailcow to /opt/stacks/mailcow so it shows up in dockge
|
||||||
apt install -y git openssl curl gawk coreutils grep jq
|
apt install -y git openssl curl gawk coreutils grep jq
|
||||||
|
|||||||
2
scripts/filebrowser-config.sh
Normal file
2
scripts/filebrowser-config.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# todo: create admin user in filebrowser
|
||||||
|
# https://filebrowser.org/cli/filebrowser-users-update.html
|
||||||
3
scripts/heimdall-config.sh
Normal file
3
scripts/heimdall-config.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# todo: include pre-made app.sqlite under dashboard/www/app.sqlite
|
||||||
|
# create version of this database with placeholders
|
||||||
|
# use sql commands to replace the placeholders
|
||||||
4
scripts/npm-config.sh
Normal file
4
scripts/npm-config.sh
Normal 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
|
||||||
|
|
||||||
1
scripts/owncloud-config.sh
Normal file
1
scripts/owncloud-config.sh
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# todo: write post-install owncloud config script using OCscript
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
services:
|
||||||
|
bookstack:
|
||||||
|
image: lscr.io/linuxserver/bookstack:latest
|
||||||
|
container_name: bookstack
|
||||||
|
environment:
|
||||||
|
TZ: %timezone%
|
||||||
|
APP_URL: https://docs.%domain%
|
||||||
|
APP_KEY: base64:%bookstackkey%
|
||||||
|
DB_HOST: bookstack_db
|
||||||
|
DB_PORT: 3306
|
||||||
|
DB_DATABASE: bookstack
|
||||||
|
DB_USERNAME: bookstack
|
||||||
|
DB_PASSWORD: %bookstackdbpass%
|
||||||
|
volumes:
|
||||||
|
- ./config:/config
|
||||||
|
networks:
|
||||||
|
- dockge_default
|
||||||
|
restart: unless-stopped
|
||||||
|
bookstack_db:
|
||||||
|
image: lscr.io/linuxserver/mariadb:latest
|
||||||
|
container_name: bookstack_db
|
||||||
|
networks:
|
||||||
|
- dockge_default
|
||||||
|
environment:
|
||||||
|
TZ: %timezone%
|
||||||
|
MYSQL_ROOT_PASSWORD: %bookstackdbrootpass%
|
||||||
|
MYSQL_DATABASE: bookstack
|
||||||
|
MYSQL_USER: bookstack
|
||||||
|
MYSQL_PASSWORD: %bookstackdbpass%
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
dockge_default:
|
||||||
|
external: true
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
services:
|
||||||
|
browser:
|
||||||
|
image: filebrowser/filebrowser
|
||||||
|
privileged: true
|
||||||
|
container_name: browser
|
||||||
|
user: root
|
||||||
|
networks:
|
||||||
|
- dockge_default
|
||||||
|
volumes:
|
||||||
|
- /opt/stacks:/srv/stacks
|
||||||
|
- ./filebrowser.db:/database.db
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
dockge_default:
|
||||||
|
external: true
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
services:
|
||||||
|
convertx:
|
||||||
|
image: ghcr.io/c4illin/convertx
|
||||||
|
container_name: convertx
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- dockge_default
|
||||||
|
environment:
|
||||||
|
JWT_SECRET: ?convertxJWT?
|
||||||
|
HTTP_ALLOWED: true
|
||||||
|
ALLOW_UNAUTHENTICATED: true
|
||||||
|
ACCOUNT_REGISTRATION: false
|
||||||
|
volumes:
|
||||||
|
- ./data:/app/data
|
||||||
|
networks:
|
||||||
|
dockge_default:
|
||||||
|
external: true
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
services:
|
||||||
|
dashboard:
|
||||||
|
image: lscr.io/linuxserver/heimdall:latest
|
||||||
|
container_name: dashboard
|
||||||
|
environment:
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1000
|
||||||
|
- TZ=$timezone
|
||||||
|
- ALLOW_INTERNAL_REQUESTS=false #optional
|
||||||
|
- APP_NAME=Home
|
||||||
|
volumes:
|
||||||
|
- ./config:/config
|
||||||
|
networks:
|
||||||
|
- dockge_default
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
dockge_default:
|
||||||
|
external: true
|
||||||
BIN
stacks/dashboard/www/app.sqlite
Normal file
BIN
stacks/dashboard/www/app.sqlite
Normal file
Binary file not shown.
@@ -0,0 +1,11 @@
|
|||||||
|
services:
|
||||||
|
dozzle:
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
networks:
|
||||||
|
- dockge_default
|
||||||
|
image: amir20/dozzle:latest
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
dockge_default:
|
||||||
|
external: true
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
services:
|
||||||
|
it-tools:
|
||||||
|
container_name: it-tools
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- dockge_default
|
||||||
|
image: corentinth/it-tools:latest
|
||||||
|
networks:
|
||||||
|
dockge_default:
|
||||||
|
external: true
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
services:
|
||||||
|
jellyfin:
|
||||||
|
image: jellyfin/jellyfin
|
||||||
|
container_name: jellyfin
|
||||||
|
user: root
|
||||||
|
networks:
|
||||||
|
- dockge_default
|
||||||
|
volumes:
|
||||||
|
- ./config:/config
|
||||||
|
- ./cache:/cache
|
||||||
|
- ./media:/media:ro
|
||||||
|
- ./fonts:/usr/local/share/fonts/custom:ro
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
JELLYFIN_PublishedServerUrl: https://video.?domain?
|
||||||
|
TZ: ?timezone?
|
||||||
|
networks:
|
||||||
|
dockge_default:
|
||||||
|
external: true
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
services:
|
||||||
|
uptime-kuma:
|
||||||
|
image: louislam/uptime-kuma:2
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./data:/app/data
|
||||||
|
networks:
|
||||||
|
- dockge_default
|
||||||
|
dns:
|
||||||
|
- 1.1.1.1
|
||||||
|
- 8.8.8.8
|
||||||
|
networks:
|
||||||
|
dockge_default:
|
||||||
|
external: true
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: jc21/nginx-proxy-manager:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- dockge_default
|
||||||
|
ports:
|
||||||
|
# These ports are in format <host-port>:<container-port>
|
||||||
|
- 80:80 # Public HTTP Port
|
||||||
|
- 443:443 # Public HTTPS Port
|
||||||
|
- 81:81 # Admin Web Port
|
||||||
|
# Add any other Stream port you want to expose
|
||||||
|
# - '21:21' # FTP
|
||||||
|
|
||||||
|
environment:
|
||||||
|
TZ: ?timezone?
|
||||||
|
# Uncomment this if you want to change the location of
|
||||||
|
# the SQLite DB file within the container
|
||||||
|
# DB_SQLITE_FILE: "/data/database.sqlite"
|
||||||
|
|
||||||
|
# Uncomment this if IPv6 is not enabled on your host
|
||||||
|
# DISABLE_IPV6: 'true'
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- ./data:/data
|
||||||
|
- ./letsencrypt:/etc/letsencrypt
|
||||||
|
networks:
|
||||||
|
dockge_default:
|
||||||
|
external: true
|
||||||
BIN
stacks/npm/data/database.sqlite
Normal file
BIN
stacks/npm/data/database.sqlite
Normal file
Binary file not shown.
67
stacks/npm/nginx/proxy_host/1.conf
Normal file
67
stacks/npm/nginx/proxy_host/1.conf
Normal 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;
|
||||||
|
}
|
||||||
59
stacks/npm/nginx/proxy_host/10.conf
Normal file
59
stacks/npm/nginx/proxy_host/10.conf
Normal 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;
|
||||||
|
}
|
||||||
67
stacks/npm/nginx/proxy_host/11.conf
Normal file
67
stacks/npm/nginx/proxy_host/11.conf
Normal 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;
|
||||||
|
}
|
||||||
67
stacks/npm/nginx/proxy_host/12.conf
Normal file
67
stacks/npm/nginx/proxy_host/12.conf
Normal 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;
|
||||||
|
}
|
||||||
67
stacks/npm/nginx/proxy_host/13.conf
Normal file
67
stacks/npm/nginx/proxy_host/13.conf
Normal 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;
|
||||||
|
}
|
||||||
67
stacks/npm/nginx/proxy_host/14.conf
Normal file
67
stacks/npm/nginx/proxy_host/14.conf
Normal 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;
|
||||||
|
}
|
||||||
67
stacks/npm/nginx/proxy_host/15.conf
Normal file
67
stacks/npm/nginx/proxy_host/15.conf
Normal 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;
|
||||||
|
}
|
||||||
67
stacks/npm/nginx/proxy_host/16.conf
Normal file
67
stacks/npm/nginx/proxy_host/16.conf
Normal 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;
|
||||||
|
}
|
||||||
59
stacks/npm/nginx/proxy_host/17.conf
Normal file
59
stacks/npm/nginx/proxy_host/17.conf
Normal 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;
|
||||||
|
}
|
||||||
59
stacks/npm/nginx/proxy_host/18.conf
Normal file
59
stacks/npm/nginx/proxy_host/18.conf
Normal 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;
|
||||||
|
}
|
||||||
67
stacks/npm/nginx/proxy_host/2.conf
Normal file
67
stacks/npm/nginx/proxy_host/2.conf
Normal 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;
|
||||||
|
}
|
||||||
67
stacks/npm/nginx/proxy_host/3.conf
Normal file
67
stacks/npm/nginx/proxy_host/3.conf
Normal 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;
|
||||||
|
}
|
||||||
67
stacks/npm/nginx/proxy_host/4.conf
Normal file
67
stacks/npm/nginx/proxy_host/4.conf
Normal 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;
|
||||||
|
}
|
||||||
67
stacks/npm/nginx/proxy_host/5.conf
Normal file
67
stacks/npm/nginx/proxy_host/5.conf
Normal 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;
|
||||||
|
}
|
||||||
67
stacks/npm/nginx/proxy_host/6.conf
Normal file
67
stacks/npm/nginx/proxy_host/6.conf
Normal 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;
|
||||||
|
}
|
||||||
67
stacks/npm/nginx/proxy_host/7.conf
Normal file
67
stacks/npm/nginx/proxy_host/7.conf
Normal 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;
|
||||||
|
}
|
||||||
67
stacks/npm/nginx/proxy_host/8.conf
Normal file
67
stacks/npm/nginx/proxy_host/8.conf
Normal 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;
|
||||||
|
}
|
||||||
67
stacks/npm/nginx/proxy_host/9.conf
Normal file
67
stacks/npm/nginx/proxy_host/9.conf
Normal 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;
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
services:
|
||||||
|
documentserver:
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- dockge_default
|
||||||
|
image: onlyoffice/documentserver
|
||||||
|
dns:
|
||||||
|
- 1.1.1.1
|
||||||
|
- 8.8.8.8
|
||||||
|
environment:
|
||||||
|
JWT_SECRET: ?onlyofficeJWT?
|
||||||
|
JWT_IN_BODY: true
|
||||||
|
networks:
|
||||||
|
dockge_default:
|
||||||
|
external: true
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
services:
|
||||||
|
owncloud_server:
|
||||||
|
image: owncloud/server:latest
|
||||||
|
container_name: owncloud_server
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- dockge_default
|
||||||
|
depends_on:
|
||||||
|
- owncloud_db
|
||||||
|
- owncloud_redis
|
||||||
|
environment:
|
||||||
|
OWNCLOUD_DOMAIN: https://cloud.?domain?
|
||||||
|
OWNCLOUD_TRUSTED_DOMAINS: localhost, cloud.?domain?
|
||||||
|
OWNCLOUD_DB_TYPE: mysql
|
||||||
|
OWNCLOUD_DB_NAME: owncloud
|
||||||
|
OWNCLOUD_DB_USERNAME: owncloud
|
||||||
|
OWNCLOUD_DB_PASSWORD: ?ownclouddbpass?
|
||||||
|
OWNCLOUD_DB_HOST: owncloud_db
|
||||||
|
OWNCLOUD_ADMIN_USERNAME: ?adminemail?
|
||||||
|
OWNCLOUD_ADMIN_PASSWORD: ?adminpass?
|
||||||
|
OWNCLOUD_MYSQL_UTF8MB4: true
|
||||||
|
OWNCLOUD_REDIS_ENABLED: true
|
||||||
|
OWNCLOUD_REDIS_HOST: owncloud_redis
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "/usr/bin/healthcheck"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 5
|
||||||
|
volumes:
|
||||||
|
- ./data:/mnt/data
|
||||||
|
|
||||||
|
owncloud_db:
|
||||||
|
image: mariadb:10.11 # minimum required ownCloud version is 10.9
|
||||||
|
container_name: owncloud_db
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- dockge_default
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=?ownclouddbrootpass?
|
||||||
|
- MYSQL_USER=owncloud
|
||||||
|
- MYSQL_PASSWORD=?ownclouddbpass?
|
||||||
|
- MYSQL_DATABASE=owncloud
|
||||||
|
- MARIADB_AUTO_UPGRADE=1
|
||||||
|
command: ["--max-allowed-packet=128M", "--innodb-log-file-size=64M"]
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "mysqladmin", "ping", "-u", "root", "--password=owncloud"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
volumes:
|
||||||
|
- ./mysql:/var/lib/mysql
|
||||||
|
|
||||||
|
owncloud_redis:
|
||||||
|
image: redis:6
|
||||||
|
container_name: owncloud_redis
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- dockge_default
|
||||||
|
command: ["--databases", "1"]
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "redis-cli", "ping"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
volumes:
|
||||||
|
- ./redis:/data
|
||||||
|
networks:
|
||||||
|
dockge_default:
|
||||||
|
external: true
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
services:
|
||||||
|
pihole:
|
||||||
|
container_name: pihole
|
||||||
|
image: pihole/pihole:latest
|
||||||
|
dns:
|
||||||
|
- 1.1.1.1
|
||||||
|
ports:
|
||||||
|
- 53:53/tcp
|
||||||
|
- 53:53/udp
|
||||||
|
environment:
|
||||||
|
TZ: Europe/Amsterdam
|
||||||
|
FTLCONF_WEBSERVER_API_PASSWORD: ?adminpass?
|
||||||
|
volumes:
|
||||||
|
- ./config:/etc/pihole
|
||||||
|
- ./dns:/etc/dnsmasq.d
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- dockge_default
|
||||||
|
networks:
|
||||||
|
dockge_default:
|
||||||
|
external: true
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
services:
|
||||||
|
site:
|
||||||
|
image: lscr.io/linuxserver/nginx:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
user: root
|
||||||
|
networks:
|
||||||
|
- dockge_default
|
||||||
|
environment:
|
||||||
|
TZ: ?timezone?
|
||||||
|
volumes:
|
||||||
|
- ./config:/config
|
||||||
|
networks:
|
||||||
|
dockge_default:
|
||||||
|
external: true
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
services:
|
||||||
|
vaultwarden:
|
||||||
|
container_name: vaultwarden
|
||||||
|
image: vaultwarden/server:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./data:/data/
|
||||||
|
networks:
|
||||||
|
- dockge_default
|
||||||
|
networks:
|
||||||
|
dockge_default:
|
||||||
|
external: true
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
services:
|
||||||
|
wireguard:
|
||||||
|
container_name: wireguard
|
||||||
|
environment:
|
||||||
|
WG_HOST: ?publicip?
|
||||||
|
PASSWORD: ?adminpass?
|
||||||
|
volumes:
|
||||||
|
- ./wireguard:/etc/wireguard
|
||||||
|
ports:
|
||||||
|
- 51820:51820/udp
|
||||||
|
networks:
|
||||||
|
- dockge_default
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
- SYS_MODULE
|
||||||
|
sysctls:
|
||||||
|
- net.ipv4.conf.all.src_valid_mark=1
|
||||||
|
- net.ipv4.ip_forward=1
|
||||||
|
restart: unless-stopped
|
||||||
|
image: weejewel/wg-easy
|
||||||
|
networks:
|
||||||
|
dockge_default:
|
||||||
|
external: true
|
||||||
Reference in New Issue
Block a user