fix: Add Dendrite to docker-compose stack (#619)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
df640af7c1
commit
b86edd7e5d
6 changed files with 195 additions and 9 deletions
12
lib/env.sh
12
lib/env.sh
|
|
@ -67,6 +67,18 @@ export WOODPECKER_REPO_ID="${WOODPECKER_REPO_ID:-}"
|
|||
export WOODPECKER_SERVER="${WOODPECKER_SERVER:-http://localhost:8000}"
|
||||
export CLAUDE_TIMEOUT="${CLAUDE_TIMEOUT:-7200}"
|
||||
|
||||
# Matrix homeserver: inside compose Dendrite is at http://dendrite:8008,
|
||||
# on bare metal it defaults to http://localhost:8008.
|
||||
if [ -z "${MATRIX_HOMESERVER:-}" ]; then
|
||||
if [ "${DISINTO_CONTAINER:-}" = "1" ]; then
|
||||
export MATRIX_HOMESERVER="http://dendrite:8008"
|
||||
else
|
||||
export MATRIX_HOMESERVER="http://localhost:8008"
|
||||
fi
|
||||
else
|
||||
export MATRIX_HOMESERVER
|
||||
fi
|
||||
|
||||
# Shared log helper
|
||||
log() {
|
||||
printf '[%s] %s\n' "$(date -u '+%Y-%m-%d %H:%M:%S UTC')" "$*"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue