updateed to use better conecshon with the doman or cliunt speeding things up

This commit is contained in:
2026-02-04 14:39:24 +00:00
parent a7c94ddc6c
commit 356fdf206e
2 changed files with 100 additions and 122 deletions
+28 -30
View File
@@ -1,47 +1,45 @@
:4533 {
# Code-Server (VS Code)
handle_path /edit* {
reverse_proxy code-server:8443
:raspberrypi-1.tail46eacb.ts.net {
tls {
get_certificate tailscale
}
# ntfy
handle_path /ntfy* {
reverse_proxy ntfy:80
# VS Code
handle_path /edit* {
reverse_proxy 127.0.0.1:8443
}
# File Browser
handle_path /drive* {
reverse_proxy 127.0.0.1:8082
}
# Music
handle /music* {
reverse_proxy 127.0.0.1:4533
}
# Trilium Notes
handle_path /notes* {
reverse_proxy 127.0.0.1:8081
}
# qBittorrent
handle_path /tr* {
reverse_proxy qbittorrent:8081
reverse_proxy 127.0.0.1:8085
}
# Navidrome
handle /music* {
reverse_proxy navidrome:4533
# ntfy
handle_path /ntfy* {
reverse_proxy 127.0.0.1:8083
}
# Gitea
handle_path /git* {
reverse_proxy gitea:3000
reverse_proxy 127.0.0.1:3001
}
# ROMM
handle_path /roms* {
reverse_proxy romm:8080
}
# Trilium
handle_path /notes* {
reverse_proxy trilium:8082
}
# Excalidraw
handle_path /draw* {
reverse_proxy excalidraw:80
}
# Homarr (Dashboard - Root)
# Homarr Dashboard (Root)
handle {
reverse_proxy homarr:7575
reverse_proxy 127.0.0.1:3000
}
}
+72 -92
View File
@@ -1,132 +1,112 @@
services:
# --- CORE INFRASTRUCTURE ---
# Reverse Proxy to handle incoming traffic and SSL
caddy:
image: caddy:latest
container_name: caddy
restart: always
ports:
- "4533:4533"
network_mode: host
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- /var/run/tailscale/tailscaled.sock:/var/run/tailscale/tailscaled.sock
- caddy_data:/data
- caddy_config:/config
# Automatically updates your Docker containers to the latest images
homarr:
image: ghcr.io/homarr-labs/homarr:latest
container_name: homarr
restart: always
ports:
- "3000:3000"
environment:
# This fixes the encryption error
- SECRET_ENCRYPTION_KEY=a90069963afd0d7fab70f044426f1c7a7f8ba322df8b4193cd975fd1f981462b
volumes:
- /home/miles/homarr-data:/appdata
code-server:
image: lscr.io/linuxserver/code-server:latest
container_name: code-server
restart: always
ports:
- "8443:8443"
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- DEFAULT_WORKSPACE=/config/workspace
volumes:
- /home/miles/code-config:/config
watchtower:
image: containrrr/watchtower:latest
container_name: watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 86400 --cleanup
# --- DEVELOPMENT & PRODUCTIVITY ---
# VS Code in the browser
code-server:
image: lscr.io/linuxserver/code-server:latest
container_name: code-server
filebrowser:
image: filebrowser/filebrowser:latest
container_name: filebrowser
restart: always
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- PASSWORD=mimiAL64.68 # Consider moving this to a .env file for security
user: "1000:1000"
ports:
- "8082:8082"
command: ["--port", "8082", "--baseurl", "/drive"]
volumes:
- /home/miles/code-config:/config
- /home/miles/projects:/config/workspace
- /home/miles/files:/srv
- /home/miles/filebrowser.db:/database/filebrowser.db
- /home/miles/filebrowser-config:/config
# Self-hosted Git service
gitea:
image: gitea/gitea:latest
container_name: gitea
restart: always
environment:
- GITEA__server__ROOT_URL=http://raspberrypi.tail46eacb.ts.net:4533/git/
volumes:
- /home/miles/gitea-data:/data
# Virtual whiteboard for sketching and diagrams
excalidraw:
image: excalidraw/excalidraw:latest
container_name: excalidraw
restart: always
# --- KNOWLEDGE & DASHBOARD ---
# Centralized dashboard for all your services
homarr:
image: ghcr.io/homarr-labs/homarr:latest
container_name: homarr
restart: always
volumes:
- /home/miles/homarr-data:/appdata
# Personal knowledge base and hierarchical note-taking
trilium:
image: triliumnext/notes:latest
container_name: trilium
restart: always
environment:
- TRILIUM_BASE_URL=notes
- TRILIUM_PORT=8082
volumes:
- /home/miles/trilium-data:/home/node/trilium-data
# --- MEDIA & ENTERTAINMENT ---
# Music streaming server (Subsonic compatible)
navidrome:
image: deluan/navidrome:latest
container_name: navidrome
restart: always
user: "1000:1000"
ports:
- "4533:4533"
environment:
- ND_BASEURL=/music
- ND_MUSICFOLDER=/music
volumes:
- /home/miles/navidrome-data:/data
- /home/miles/navidrome-music:/music
# Game ROM manager and browser-based emulator
romm:
image: rommapp/romm:latest
container_name: romm
trilium:
image: triliumnext/notes:latest
container_name: trilium
restart: always
environment:
- ROMM_BASE_URL=/roms
- ROMM_PORT=8080
- REDIS_HOST=romm-redis
depends_on:
- romm-redis
ports:
- "8081:8080"
volumes:
- /home/miles/roms:/roms
- /home/miles/romm-data:/data
- /home/miles/trilium-data:/home/node/trilium-data
# Cache database for RomM
romm-redis:
image: redis:alpine
container_name: romm-redis
restart: always
# --- UTILITIES ---
# Push notification service (Pub-Sub)
ntfy:
image: binwiederhier/ntfy:latest
container_name: ntfy
restart: always
command: serve
volumes:
- /home/miles/ntfy-cache:/var/cache/ntfy
# Torrent client with Web UI
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
restart: always
environment:
- WEBUI_PORT=8081
- PUID=1000
- PGID=1000
ports:
- "8085:8081"
volumes:
- /home/miles/qbittorrent-config:/config
- /home/miles/downloads:/downloads
- /home/miles/torrent-config:/config
- /home/miles/files/downloads:/downloads
ntfy:
image: binwiederhier/ntfy:latest
container_name: ntfy
restart: always
ports:
- "8083:80"
command: ["serve"]
gitea:
image: gitea/gitea:latest
container_name: gitea
restart: always
ports:
- "3001:3000"
volumes:
- /home/miles/gitea-data:/data
# Persistent volumes for Caddy configuration
volumes:
caddy_data:
caddy_config:
caddy_data: