Fix critical deployment issues for Round 4

- Add DOCKER_API_VERSION=1.44 to Watchtower (fixes crash loop)
- Add dockerproxy-network creation to deploy script (fixes dashboard deployment)
- Add explicit acme.json file creation with 600 permissions (fixes SSL cert acquisition)
- Fix setup script to correctly resolve user home directory when run with sudo

These fixes resolve all critical blockers discovered in Round 3 testing.
This commit is contained in:
2026-01-13 17:36:47 -05:00
parent a53effad10
commit f92424ed6d
3 changed files with 62 additions and 55 deletions

View File

@@ -162,7 +162,8 @@ generate_secret() {
}
# Check if .env file exists in the repo
REPO_ENV_FILE="$HOME/AI-Homelab/.env"
ACTUAL_USER_HOME=$(eval echo ~$ACTUAL_USER)
REPO_ENV_FILE="$ACTUAL_USER_HOME/AI-Homelab/.env"
if [ ! -f "$REPO_ENV_FILE" ]; then
log_error ".env file not found at $REPO_ENV_FILE"
log_info "Please create .env file from .env.example first"