Init
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
|||||||
|
.idea
|
||||||
|
|
||||||
|
Ace/
|
||||||
|
Database/
|
||||||
|
|
||||||
|
Gitea/gitea/
|
||||||
|
Gitea/mysql/
|
||||||
|
Minecraft/data
|
||||||
|
NginxReverseProxy/data/
|
||||||
|
NginxReverseProxy/letsencrypt
|
||||||
|
Scanopy/data
|
||||||
|
JellyFin/Gluetun
|
||||||
|
JellyFin/JellySeerr
|
||||||
|
JellyFin/Prowlarr
|
||||||
|
JellyFin/Radarr
|
||||||
|
JellyFin/Sonarr
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
up:
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
|
down:
|
||||||
|
docker-compose down
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
services:
|
||||||
|
audiobookshelf:
|
||||||
|
image: ghcr.io/advplyr/audiobookshelf:latest
|
||||||
|
|
||||||
|
ports:
|
||||||
|
- 13378:80
|
||||||
|
volumes:
|
||||||
|
- /mnt/e/Audio/books:/audiobooks
|
||||||
|
- /mnt/e/Audio/podcasts:/podcasts
|
||||||
|
- /mnt/e/Audio/config:/config
|
||||||
|
- /mnt/e/Audio/metadata:/metadata
|
||||||
|
environment:
|
||||||
|
- TZ=Europe/London
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
DATA_PATH=/mnt/e/Cloud/data
|
||||||
|
REDIS_PATH=/mnt/e/Cloud/redis
|
||||||
|
POSTGRES_PATH=/mnt/e/Cloud/postgres
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
up:
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
|
down:
|
||||||
|
docker-compose down
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
services:
|
||||||
|
cloudreve:
|
||||||
|
image: cloudreve/cloudreve:latest
|
||||||
|
container_name: cloudreve-backend
|
||||||
|
depends_on:
|
||||||
|
- postgresql
|
||||||
|
- redis
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "5212:5212"
|
||||||
|
- "6888:6888"
|
||||||
|
- "6888:6888/udp"
|
||||||
|
environment:
|
||||||
|
- CR_CONF_Database.Type=postgres
|
||||||
|
- CR_CONF_Database.Host=postgresql
|
||||||
|
- CR_CONF_Database.User=cloudreve
|
||||||
|
- CR_CONF_Database.Name=cloudreve
|
||||||
|
- CR_CONF_Database.Port=5432
|
||||||
|
- CR_CONF_Redis.Server=redis:6379
|
||||||
|
volumes:
|
||||||
|
- "${DATA_PATH}:/cloudreve/data"
|
||||||
|
|
||||||
|
postgresql:
|
||||||
|
# Best practice: Pin to major version.
|
||||||
|
# NOTE: For major version jumps:
|
||||||
|
# backup & consult https://www.postgresql.org/docs/current/pgupgrade.html
|
||||||
|
image: postgres:17
|
||||||
|
container_name: postgresql
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=cloudreve
|
||||||
|
- POSTGRES_DB=cloudreve
|
||||||
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
||||||
|
volumes:
|
||||||
|
- database_postgres:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
redis:
|
||||||
|
image: redis:latest
|
||||||
|
container_name: redis
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- redis_data:/data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
# backend_data:
|
||||||
|
database_postgres:
|
||||||
|
redis_data:
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
DOZZLE_PORT=8180
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
up:
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
|
down:
|
||||||
|
docker-compose down
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
services:
|
||||||
|
dockhand:
|
||||||
|
image: fnsys/dockhand:latest
|
||||||
|
container_name: dockhand
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- dockhand_data:/app/data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
dockhand_data:
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# User & Timezone Settings
|
||||||
|
PUID=1000
|
||||||
|
PGID=1000
|
||||||
|
TZ=Europe/London
|
||||||
|
|
||||||
|
DB_PASSWORD=gittea
|
||||||
|
MYSQL_ROOT_PASSWORD=root
|
||||||
|
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
up:
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
|
down:
|
||||||
|
docker-compose down
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
|
||||||
|
services:
|
||||||
|
gitea:
|
||||||
|
image: gitea/gitea:latest
|
||||||
|
container_name: gitea
|
||||||
|
environment:
|
||||||
|
- USER_UID=${PUID}
|
||||||
|
- USER_GID=${PGID}
|
||||||
|
- TZ=${TZ}
|
||||||
|
- GITEA__database__DB_TYPE=mysql
|
||||||
|
- GITEA__database__HOST=db:3306
|
||||||
|
- GITEA__database__NAME=gitea
|
||||||
|
- GITEA__database__USER=gitea
|
||||||
|
- GITEA__database__PASSWD=${DB_PASSWORD}
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- gitea
|
||||||
|
volumes:
|
||||||
|
- ./gitea:/data
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
ports:
|
||||||
|
- "3001:3000"
|
||||||
|
- "222:22"
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: mysql:8
|
||||||
|
container_name: gitea-db
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
||||||
|
- MYSQL_DATABASE=gitea
|
||||||
|
- MYSQL_USER=gitea
|
||||||
|
- MYSQL_PASSWORD=${DB_PASSWORD}
|
||||||
|
- TZ=${TZ}
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- gitea
|
||||||
|
volumes:
|
||||||
|
- ./mysql:/var/lib/mysql
|
||||||
|
|
||||||
|
|
||||||
|
networks:
|
||||||
|
gitea:
|
||||||
|
external: false
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
.env
|
||||||
|
|
||||||
|
Gluetun/*
|
||||||
|
JellySeerr/*
|
||||||
|
Prowlarr/*
|
||||||
|
Radarr/*
|
||||||
|
Sonarr/*
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
up:
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
|
down:
|
||||||
|
docker-compose down
|
||||||
|
|
||||||
|
nginx-up:
|
||||||
|
cd ../NginxReverseProxy
|
||||||
|
docker-compose up -d
|
||||||
|
cd -
|
||||||
|
|
||||||
|
nginx-down:
|
||||||
|
cd ../NginxReverseProxy
|
||||||
|
docker-compose down
|
||||||
|
cd -
|
||||||
@@ -0,0 +1,136 @@
|
|||||||
|
services:
|
||||||
|
|
||||||
|
jellyfin:
|
||||||
|
image: lscr.io/linuxserver/jellyfin:latest
|
||||||
|
container_name: jellyfin
|
||||||
|
environment:
|
||||||
|
- PUID=${PUID}
|
||||||
|
- PGID=${PGID}
|
||||||
|
- TZ=${TZ}
|
||||||
|
volumes:
|
||||||
|
- /mnt/e/library:/config
|
||||||
|
- ${TVSHOWS}:/data/tvshows
|
||||||
|
- ${MOVIES}:/data/movies
|
||||||
|
ports:
|
||||||
|
- "8096:8096"
|
||||||
|
- "8920:8920"
|
||||||
|
- "7359:7359/udp"
|
||||||
|
- "1900:1900/udp"
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- lingen
|
||||||
|
|
||||||
|
jellyseerr:
|
||||||
|
image: ghcr.io/fallenbagel/jellyseerr:latest
|
||||||
|
init: true
|
||||||
|
container_name: jellyseerr
|
||||||
|
environment:
|
||||||
|
- LOG_LEVEL=debug
|
||||||
|
- TZ=${TZ}
|
||||||
|
- PORT=5055
|
||||||
|
ports:
|
||||||
|
- "5055:5055"
|
||||||
|
volumes:
|
||||||
|
- ./JellySeerr/config:/app/config
|
||||||
|
healthcheck:
|
||||||
|
test: wget --no-verbose --tries=1 --spider http://localhost:5055/api/v1/status || exit 1
|
||||||
|
start_period: 20s
|
||||||
|
timeout: 3s
|
||||||
|
interval: 15s
|
||||||
|
retries: 3
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- lingen
|
||||||
|
|
||||||
|
sonarr:
|
||||||
|
image: lscr.io/linuxserver/sonarr:latest
|
||||||
|
container_name: sonarr
|
||||||
|
environment:
|
||||||
|
- PUID=${PUID}
|
||||||
|
- PGID=${PGID}
|
||||||
|
- TZ=${TZ}
|
||||||
|
volumes:
|
||||||
|
- ./Sonarr/data:/config
|
||||||
|
- ./Sonarr/downloads:/downloads
|
||||||
|
- ${TVSHOWS}:/data/tvshows
|
||||||
|
- ${MOVIES}:/data/movies
|
||||||
|
- ${DOWNLOADS}:/data/downloads
|
||||||
|
ports:
|
||||||
|
- "8989:8989"
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- lingen
|
||||||
|
|
||||||
|
prowlarr:
|
||||||
|
container_name: prowlarr
|
||||||
|
image: ghcr.io/hotio/prowlarr
|
||||||
|
ports:
|
||||||
|
- "9696:9696"
|
||||||
|
environment:
|
||||||
|
- PUID=${PUID}
|
||||||
|
- PGID=${PGID}
|
||||||
|
- UMASK=002
|
||||||
|
- TZ=${TZ}
|
||||||
|
volumes:
|
||||||
|
- ./Prowlarr/config:/config
|
||||||
|
networks:
|
||||||
|
- lingen
|
||||||
|
|
||||||
|
radarr:
|
||||||
|
container_name: radarr
|
||||||
|
image: ghcr.io/hotio/radarr
|
||||||
|
ports:
|
||||||
|
- "7878:7878"
|
||||||
|
environment:
|
||||||
|
- PUID=${PUID}
|
||||||
|
- PGID=${PGID}
|
||||||
|
- UMASK=002
|
||||||
|
- TZ=${TZ}
|
||||||
|
volumes:
|
||||||
|
- ./Radarr/config:/config
|
||||||
|
- ./Radarr/data:/data
|
||||||
|
- ./Radarr/downloads:/downloads
|
||||||
|
- ${TVSHOWS}:/data/tvshows
|
||||||
|
- ${MOVIES}:/data/movies
|
||||||
|
- ${DOWNLOADS}:/data/downloads
|
||||||
|
networks:
|
||||||
|
- lingen
|
||||||
|
|
||||||
|
qbittorrent:
|
||||||
|
image: lscr.io/linuxserver/qbittorrent:latest
|
||||||
|
container_name: qbittorrent
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
- "6881:6881"
|
||||||
|
- "6881:6881/udp"
|
||||||
|
environment:
|
||||||
|
- PUID=${PUID}
|
||||||
|
- PGID=${PGID}
|
||||||
|
- TZ=${TZ}
|
||||||
|
- WEBUI_PORT=8080
|
||||||
|
volumes:
|
||||||
|
- ./Radarr/config:/config
|
||||||
|
- ${TVSHOWS}:/data/tvshows
|
||||||
|
- ${MOVIES}:/data/movies
|
||||||
|
- ${DOWNLOADS}:/data/downloads
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- lingen
|
||||||
|
|
||||||
|
flaresolverr:
|
||||||
|
image: ghcr.io/flaresolverr/flaresolverr:latest
|
||||||
|
container_name: flaresolverr
|
||||||
|
environment:
|
||||||
|
- LOG_LEVEL=${LOG_LEVEL:-info}
|
||||||
|
- LOG_HTML=${LOG_HTML:-false}
|
||||||
|
- CAPTCHA_SOLVER=${CAPTCHA_SOLVER:-none}
|
||||||
|
- TZ=${TZ}
|
||||||
|
ports:
|
||||||
|
- ${PORT:-8191}:8191
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- lingen
|
||||||
|
|
||||||
|
networks:
|
||||||
|
lingen:
|
||||||
|
driver: bridge
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
up:
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
|
down:
|
||||||
|
docker-compose down
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
services:
|
||||||
|
mc:
|
||||||
|
image: itzg/minecraft-server:latest
|
||||||
|
tty: true
|
||||||
|
stdin_open: true
|
||||||
|
ports:
|
||||||
|
- "25565:25565"
|
||||||
|
environment:
|
||||||
|
EULA: "TRUE"
|
||||||
|
MEMORY: "5120M"
|
||||||
|
volumes:
|
||||||
|
- "./data:/data"
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
up:
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
|
down:
|
||||||
|
docker-compose down
|
||||||
@@ -0,0 +1,276 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Lingen Navigator</title>
|
||||||
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
|
||||||
|
<style>
|
||||||
|
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
height: 100vh;
|
||||||
|
margin: 0;
|
||||||
|
background: linear-gradient(to right, #2F0743, #41295a);
|
||||||
|
color: #FFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 2rem;
|
||||||
|
font-weight: bold;
|
||||||
|
margin: 3rem 0;
|
||||||
|
text-align: center;
|
||||||
|
position: relative;
|
||||||
|
color: #FFF;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
bottom: -10px;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
width: 100px;
|
||||||
|
height: 4px;
|
||||||
|
background: linear-gradient(to right, #735fb4, #3a8f78);
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1:hover {
|
||||||
|
text-shadow: 0 0 10px #FFF, 0 0 20px #735fb4, 0 0 30px #735fb4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-container {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 5px;
|
||||||
|
max-width: 800px;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tooltip-container {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tooltip-container .tooltip-text {
|
||||||
|
visibility: hidden;
|
||||||
|
background: linear-gradient(to right, #591c60, #5b3ab8);
|
||||||
|
color: #fff;
|
||||||
|
text-align: center;
|
||||||
|
padding: 8px;
|
||||||
|
border-radius: 5px;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 125%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 0.3s ease;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
z-index: 10;
|
||||||
|
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tooltip-container .tooltip-text::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
border-width: 5px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: #5b3ab8 transparent transparent transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tooltip-container:hover .tooltip-text {
|
||||||
|
visibility: visible;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-button {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 15px 20px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 30px;
|
||||||
|
background: linear-gradient(to right, #591c60, #5b3ab8);
|
||||||
|
color: #FFF;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 500;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
text-align: center;
|
||||||
|
transition: all 0.4s ease;
|
||||||
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-button i {
|
||||||
|
font-size: 20px;
|
||||||
|
color: #fff;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-button:hover {
|
||||||
|
background: linear-gradient(to right, #5b3ab8, #17544d);
|
||||||
|
transform: scale(1.05);
|
||||||
|
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-button:hover i {
|
||||||
|
color: #ffcc00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-button.inactive {
|
||||||
|
background: #555;
|
||||||
|
cursor: not-allowed;
|
||||||
|
color: #aaa;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-button.inactive i {
|
||||||
|
color: #aaa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.code-container {
|
||||||
|
position: relative;
|
||||||
|
background-color: #21252b;
|
||||||
|
color: #abb2bf;
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
||||||
|
padding: 20px;
|
||||||
|
font-family: 'Courier New', Courier, monospace;
|
||||||
|
font-size: 14px;
|
||||||
|
width: 90%;
|
||||||
|
max-width: 800px;
|
||||||
|
overflow-x: auto;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.code-container pre {
|
||||||
|
margin: 0;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copy-button {
|
||||||
|
position: absolute;
|
||||||
|
top: 10px;
|
||||||
|
right: 10px;
|
||||||
|
background-color: #735fb4;
|
||||||
|
color: #FFF;
|
||||||
|
border: none;
|
||||||
|
border-radius: 5px;
|
||||||
|
padding: 5px 10px;
|
||||||
|
font-size: 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background-color 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copy-button:hover {
|
||||||
|
background-color: #3a8f78;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.link-button {
|
||||||
|
font-size: 14px;
|
||||||
|
padding: 10px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tooltip-container .tooltip-text {
|
||||||
|
width: 150px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Lingen Services</h1>
|
||||||
|
<div class="button-container"></div>
|
||||||
|
<h1>Lingen Hosts</h1>
|
||||||
|
<div class="code-container">
|
||||||
|
<button class="copy-button">Copy</button>
|
||||||
|
<pre></pre>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
const sites = [
|
||||||
|
{ ipAddress: "192.168.40.5", port: "8096", name: "JellyFin", description: "Stream media", site: "jellyfin", icon: "fa-solid fa-film" },
|
||||||
|
{ ipAddress: "192.168.40.5", port: "5055", name: "JellySeerr", description: "Request and find media", site: "jellyseerr", icon: "fa-solid fa-search" },
|
||||||
|
{ ipAddress: "192.168.40.5", port: "8989", name: "Sonarr", description: "TV Arr", site: "sonarr", icon: "fa-solid fa-tv" },
|
||||||
|
{ ipAddress: "192.168.40.5", port: "7878", name: "Radarr", description: "Movies Arr", site: "radarr", icon: "fa-solid fa-video" },
|
||||||
|
{ ipAddress: "192.168.40.5", port: "9696", name: "Prowlarr", description: "Torrent indexers", site: "prowlarr", icon: "fa-solid fa-cloud-download-alt" },
|
||||||
|
{ ipAddress: "192.168.40.5", port: "13378", name: "Audio books", description: "Audio book service", site: "books", icon: "fa-solid fa-book" },
|
||||||
|
{ ipAddress: "192.168.40.5", port: "5212", name: "Cloud Drive", description: "Google Drive alternative", site: "cloud", icon: "fa-solid fa-cloud" },
|
||||||
|
{ ipAddress: "192.168.40.5", port: "3000", name: "DockHand", description: "Docker monitoring", site: "monitor", icon: "fa-brands fa-docker" },
|
||||||
|
{ ipAddress: "192.168.40.5", port: "3001", name: "Gittea", description: "Git service", site: "git", icon: "fa-solid fa-code-branch" },
|
||||||
|
{ ipAddress: "192.168.40.5", port: "81", name: "Nginx Reverse Proxy", description: "Provide site routing", site: "nginx", icon: "fa-solid fa-network-wired" },
|
||||||
|
{ ipAddress: "192.168.40.5", port: "8080", name: "QBit Torrent", description: "Torrent client", site: "torrent", icon: "fa-solid fa-download" },
|
||||||
|
{ ipAddress: "192.168.40.5", port: "7676", name: "PruneMate", description: "Clean up Docker data", site: "prune", icon: "fa-solid fa-trash" },
|
||||||
|
{ ipAddress: "192.168.40.5", port: "60072", name: "Scanopy", description: "Scan and organize your network", site: "scan", icon: "fa-solid fa-satellite-dish" }
|
||||||
|
];
|
||||||
|
|
||||||
|
const buttonContainer = document.querySelector(".button-container");
|
||||||
|
const codeContainerPre = document.querySelector(".code-container pre");
|
||||||
|
const domain = "lingen";
|
||||||
|
|
||||||
|
async function checkServiceStatus(url) {
|
||||||
|
try {
|
||||||
|
const response = await fetch(url, { method: "HEAD", mode: "no-cors" });
|
||||||
|
return true;
|
||||||
|
} catch (error) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sites.forEach(async (site) => {
|
||||||
|
const tooltipContainer = document.createElement("div");
|
||||||
|
tooltipContainer.className = "tooltip-container";
|
||||||
|
|
||||||
|
const link = document.createElement("a");
|
||||||
|
const url = `http://${site.ipAddress}:${site.port}`;
|
||||||
|
link.href = url;
|
||||||
|
link.target = "_blank";
|
||||||
|
link.className = "link-button";
|
||||||
|
link.innerHTML = `<i class="${site.icon}"></i>${site.name}`;
|
||||||
|
|
||||||
|
const tooltip = document.createElement("div");
|
||||||
|
tooltip.className = "tooltip-text";
|
||||||
|
tooltip.textContent = site.description;
|
||||||
|
|
||||||
|
tooltipContainer.appendChild(link);
|
||||||
|
tooltipContainer.appendChild(tooltip);
|
||||||
|
buttonContainer.appendChild(tooltipContainer);
|
||||||
|
|
||||||
|
codeContainerPre.textContent += `${site.ipAddress} ${site.site}.${domain}\n`;
|
||||||
|
|
||||||
|
const isActive = await checkServiceStatus(url);
|
||||||
|
if (!isActive) {
|
||||||
|
link.classList.add("inactive");
|
||||||
|
link.removeAttribute("href");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const copyButton = document.querySelector(".copy-button");
|
||||||
|
copyButton.addEventListener("click", () => {
|
||||||
|
const codeText = codeContainerPre.textContent;
|
||||||
|
navigator.clipboard.writeText(codeText).then(() => {
|
||||||
|
copyButton.textContent = "Copied!";
|
||||||
|
setTimeout(() => (copyButton.textContent = "Copy"), 2000);
|
||||||
|
}).catch(() => {
|
||||||
|
copyButton.textContent = "Error!";
|
||||||
|
setTimeout(() => (copyButton.textContent = "Copy"), 2000);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: 'jc21/nginx-proxy-manager:latest'
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
environment:
|
||||||
|
TZ: "Europe/London"
|
||||||
|
ports:
|
||||||
|
- '80:80'
|
||||||
|
- '81:81'
|
||||||
|
|
||||||
|
- '443:443'
|
||||||
|
volumes:
|
||||||
|
- ./data:/data
|
||||||
|
- ./letsencrypt:/etc/letsencrypt
|
||||||
|
networks:
|
||||||
|
- lingen
|
||||||
|
networks:
|
||||||
|
lingen:
|
||||||
|
driver: bridge
|
||||||
|
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
up:
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
|
down:
|
||||||
|
docker-compose down
|
||||||
@@ -0,0 +1,85 @@
|
|||||||
|
name: scanopy
|
||||||
|
|
||||||
|
x-scanopy-env: &scanopy-env
|
||||||
|
SCANOPY_LOG_LEVEL: ${SCANOPY_LOG_LEVEL:-info}
|
||||||
|
SCANOPY_SERVER_PORT: ${SCANOPY_SERVER_PORT:-60072}
|
||||||
|
SCANOPY_DAEMON_PORT: ${SCANOPY_DAEMON_PORT:-60073}
|
||||||
|
|
||||||
|
services:
|
||||||
|
daemon:
|
||||||
|
image: ghcr.io/scanopy/scanopy/daemon:latest
|
||||||
|
container_name: scanopy-daemon
|
||||||
|
network_mode: host
|
||||||
|
privileged: true
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "${SCANOPY_DAEMON_PORT:-60073}:${SCANOPY_DAEMON_PORT:-60073}"
|
||||||
|
environment:
|
||||||
|
<<: *scanopy-env
|
||||||
|
SCANOPY_SERVER_URL: ${SCANOPY_SERVER_URL:-http://127.0.0.1:60072}
|
||||||
|
SCANOPY_PORT: ${SCANOPY_DAEMON_PORT:-60073}
|
||||||
|
SCANOPY_BIND_ADDRESS: ${SCANOPY_BIND_ADDRESS:-0.0.0.0}
|
||||||
|
SCANOPY_NAME: ${SCANOPY_NAME:-scanopy-daemon}
|
||||||
|
SCANOPY_HEARTBEAT_INTERVAL: ${SCANOPY_HEARTBEAT_INTERVAL:-30}
|
||||||
|
SCANOPY_MODE: ${SCANOPY_MODE:-Push}
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "curl -f http://localhost:${SCANOPY_DAEMON_PORT:-60073}/api/health || exit 1"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 3s
|
||||||
|
retries: 15
|
||||||
|
volumes:
|
||||||
|
- daemon-config:/root/.config/daemon
|
||||||
|
# Comment out the line below to disable docker discovery
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
image: postgres:17-alpine
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: scanopy
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
|
||||||
|
volumes:
|
||||||
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- scanopy
|
||||||
|
|
||||||
|
server:
|
||||||
|
image: ghcr.io/scanopy/scanopy/server:latest
|
||||||
|
ports:
|
||||||
|
- "${SCANOPY_SERVER_PORT:-60072}:${SCANOPY_SERVER_PORT:-60072}"
|
||||||
|
environment:
|
||||||
|
<<: *scanopy-env
|
||||||
|
SCANOPY_DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD:-password}@postgres:5432/scanopy
|
||||||
|
SCANOPY_WEB_EXTERNAL_PATH: /app/static
|
||||||
|
SCANOPY_PUBLIC_URL: ${SCANOPY_PUBLIC_URL:-http://localhost:${SCANOPY_SERVER_PORT:-60072}}
|
||||||
|
# How server reaches integrated daemon
|
||||||
|
# 172.17.0.1 is Docker's default bridge gateway. If your's is different, make sure to change it.
|
||||||
|
SCANOPY_INTEGRATED_DAEMON_URL: http://172.17.0.1:${SCANOPY_DAEMON_PORT:-60073}
|
||||||
|
volumes:
|
||||||
|
- ./data:/data
|
||||||
|
depends_on:
|
||||||
|
postgres:
|
||||||
|
condition: service_healthy
|
||||||
|
daemon:
|
||||||
|
condition: service_healthy
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- scanopy
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
postgres_data:
|
||||||
|
daemon-config:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
scanopy:
|
||||||
|
driver: bridge
|
||||||
|
ipam:
|
||||||
|
config:
|
||||||
|
- subnet: 172.31.0.0/16
|
||||||
|
gateway: 172.31.0.1
|
||||||
Reference in New Issue
Block a user