Adding dozzle for viewing logs.

This commit is contained in:
2025-08-31 14:56:07 -07:00
parent 7cdccea6d8
commit c2751d6d16
4 changed files with 17 additions and 3 deletions

View File

@@ -2,7 +2,12 @@ TERRAFORM_ENV=production
# .dirstamp plus && $@ is like make magic to get this rule
# to only run if the contents of all-apps changes
app/.dirstamp: all-apps/app.service all-apps/docker-compose.yaml $(wildcard all-apps/lb/*) $(wildcard all-apps/nextcloud/*) $(wildcard all-apps/wg-easy/*)
app/.dirstamp: all-apps/app.service all-apps/docker-compose.yaml \
$(wildcard all-apps/lb/*) \
$(wildcard all-apps/nextcloud/*) \
$(wildcard all-apps/wg-easy/*) \
$(wildcard all-apps/dozzle/*)
rm -Rf app/
cp -a all-apps app && touch $@

View File

@@ -0,0 +1,10 @@
services:
dozzle:
container_name: dozzle
image: amir20/dozzle:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- lb
networks:
lb:

View File

@@ -66,8 +66,6 @@ services:
- NEXTCLOUD_ADMIN_USER=admin
- REDIS_HOST=redis
- NEXTCLOUD_TRUSTED_DOMAINS=nextcloud.nassella.cc # TODO generate this?
ports:
- "8080:80"
depends_on:
redis:
condition: service_healthy

View File

@@ -22,6 +22,7 @@ APP_CONFIGS+=('lb,root')
declare -A bodys
bodys["nextcloud"]=" reverse_proxy http://nextcloud:80"
bodys["wg-easy"]=" reverse_proxy http://wg-easy:80"
bodys["dozzle"]=" reverse_proxy http://dozzle:8080"
bodys["lb"]=" reverse_proxy http://nginx:80"
for config_string in ${APP_CONFIGS[@]}; do