Updated docker-compose files for use with Docker Caddy
Defined top level name for all services Added proxy-net to services Updated main service/server container service name to "app" Updated hostname references to projectname-app-1 Updated docker Caddy caddyfile to reference container names Updated docker Caddy caddyfile to use 192.168.1.234 instead of localhost for non-docker services Adjusted caddyfile accordingly
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
}
|
||||
}
|
||||
(secure) {
|
||||
forward_auth {args[0]} authelia:9091 {
|
||||
forward_auth {args[0]} authelia-app-1:9091 {
|
||||
uri /api/authz/forward-auth
|
||||
copy_headers Remote-User Remote-Groups Remote-Name Remote-Email
|
||||
}
|
||||
@@ -54,7 +54,15 @@
|
||||
import ttt-log {args[0]}
|
||||
import tls
|
||||
import secure *
|
||||
import ttt-proxy {args[0]} {args[1]}
|
||||
import ttt-proxy {args[0]}-app-1 {args[1]}
|
||||
}
|
||||
}
|
||||
(ttt-app-local) {
|
||||
{args[0]}.tremendousturtle.tools {
|
||||
import ttt-log {args[0]}
|
||||
import tls
|
||||
import secure *
|
||||
import ttt-proxy 192.168.1.234 {args[1]}
|
||||
}
|
||||
}
|
||||
(ttt-app-alt) {
|
||||
@@ -74,45 +82,33 @@ tremendousturtle.tools {
|
||||
|
||||
auth.tremendousturtle.tools {
|
||||
import tls
|
||||
reverse_proxy 127.0.0.1:9091
|
||||
reverse_proxy authelia-app-1:9091
|
||||
}
|
||||
|
||||
authentik.tremendousturtle.tools {
|
||||
import tls
|
||||
reverse_proxy 127.0.0.1:9000
|
||||
reverse_proxy authentik-app-1:9000
|
||||
}
|
||||
|
||||
# Define code.tremendousturtle.tools
|
||||
import ttt-app code 8020
|
||||
# Locally hosted non-docker apps (proxies to 192.168.1.234 instead of localhost)
|
||||
import ttt-app-local code 8020
|
||||
import ttt-app-local pihole 1080
|
||||
import ttt-app-local sonarr 8989
|
||||
import ttt-app-local radarr 7878
|
||||
import ttt-app-local prowlarr 9696
|
||||
import ttt-app-local cockpit 9090
|
||||
|
||||
# Docker apps with same subdomain as docker compose project name
|
||||
import ttt-app frigate 8971
|
||||
|
||||
import ttt-app pihole 1080
|
||||
|
||||
import ttt-app stash 9999
|
||||
|
||||
import ttt-app sonarr 8989
|
||||
|
||||
import ttt-app radarr 7878
|
||||
|
||||
import ttt-app overseerr 5055
|
||||
|
||||
import ttt-app prowlarr 9696
|
||||
|
||||
import ttt-app openobserve 5080
|
||||
|
||||
import ttt-app cockpit 9090
|
||||
|
||||
import ttt-app budget 5006
|
||||
|
||||
import ttt-app gitea 3000
|
||||
|
||||
import ttt-app trilium 8040
|
||||
|
||||
import ttt-app notes 8040
|
||||
|
||||
import ttt-app-alt pihole1 192.168.1.116 80
|
||||
|
||||
import ttt-app homepage 3001
|
||||
|
||||
|
||||
# Alternate configuration (different subdomain and docker compose project name)
|
||||
import ttt-app-alt budget actual-server-app-1 5006
|
||||
import ttt-app-alt trilium triliumnext-notes-app-1 8040
|
||||
import ttt-app-alt notes triliumnext-notes-app-1 8040
|
||||
import ttt-app-alt stash stashapp-app-1 9999
|
||||
import ttt-app-alt pihole1 192.168.1.116 80
|
||||
|
||||
Reference in New Issue
Block a user