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:
@@ -101,6 +101,7 @@ echo ""
|
||||
log_info "Step 2/5: Creating Docker networks..."
|
||||
docker network create homelab-network 2>/dev/null && log_success "Created homelab-network" || log_info "homelab-network already exists"
|
||||
docker network create traefik-network 2>/dev/null && log_success "Created traefik-network" || log_info "traefik-network already exists"
|
||||
docker network create dockerproxy-network 2>/dev/null && log_success "Created dockerproxy-network" || log_info "dockerproxy-network already exists"
|
||||
docker network create media-network 2>/dev/null && log_success "Created media-network" || log_info "media-network already exists"
|
||||
echo ""
|
||||
|
||||
@@ -118,6 +119,12 @@ cp -r "$REPO_DIR/config-templates/traefik" /opt/stacks/core/
|
||||
cp -r "$REPO_DIR/config-templates/authelia" /opt/stacks/core/
|
||||
cp "$REPO_DIR/.env" /opt/stacks/core/.env
|
||||
|
||||
# Create acme.json as a file (not directory) with correct permissions
|
||||
log_info "Creating acme.json for SSL certificates..."
|
||||
touch /opt/stacks/core/traefik/acme.json
|
||||
chmod 600 /opt/stacks/core/traefik/acme.json
|
||||
log_success "acme.json created with correct permissions"
|
||||
|
||||
# Replace domain placeholder in authelia configuration
|
||||
log_info "Configuring Authelia for domain: $DOMAIN..."
|
||||
sed -i "s/your-domain.duckdns.org/${DOMAIN}/g" /opt/stacks/core/authelia/configuration.yml
|
||||
|
||||
Reference in New Issue
Block a user