blazor.web.js issues
Some checks failed
Build and Deploy / Deploy to server (push) Has been skipped
Build and Deploy / Build and push image (push) Failing after 6m0s

This commit is contained in:
Nils Blomgren
2026-06-08 16:48:36 +02:00
parent ffe41b4413
commit 343de77810
16 changed files with 459 additions and 266 deletions

View File

@@ -1,4 +1,21 @@
services:
caddy:
image: caddy:2
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
- caddy-config:/config
environment:
DOMAIN: "${DOMAIN}"
ACME_EMAIL: "${ACME_EMAIL}"
depends_on:
- entkube
restart: unless-stopped
postgres:
image: postgres:17
environment:
@@ -16,12 +33,7 @@ services:
restart: unless-stopped
entkube:
build:
context: .
dockerfile: Dockerfile
image: entkube:latest
ports:
- "8080:8080"
image: ${REGISTRY:-entit.azurecr.io}/entkube:${IMAGE_TAG:-latest}
volumes:
- entkube-data:/app/Data
depends_on:
@@ -33,13 +45,21 @@ services:
ConnectionStrings__DefaultConnection: "Host=postgres;Port=5432;Database=entkube;Username=entkube;Password=${POSTGRES_PASSWORD:-changeme}"
# --- Vault encryption ---
# Required. Generate with: openssl rand -base64 32
Vault__RootKey: "REPLACE_WITH_BASE64_32_BYTE_KEY"
# Required — set VAULT__ROOTKEY in your .env file (openssl rand -base64 32)
Vault__RootKey: "${VAULT__ROOTKEY}"
# --- Reverse proxy ---
# Tells ASP.NET Core to trust X-Forwarded-For / X-Forwarded-Proto from Caddy.
# Required for Blazor Server SignalR (WebSocket) to work correctly behind a proxy.
ASPNETCORE_FORWARDEDHEADERS_ENABLED: "true"
# --- Auth ---
# Set to false after the first admin account is created.
Auth__AllowRegistration: "true"
# --- Temporary: log all HTTP requests so we can see 404s ---
Logging__LogLevel__Microsoft__AspNetCore__Hosting__Diagnostics: "Information"
# --- Bootstrap ---
# Optional. If set, this user is granted the Admin role on every startup
# (no-op if already admin). Useful for recovering access.
@@ -57,3 +77,5 @@ volumes:
# Data is only deleted if you explicitly run "docker compose down -v".
postgres-data:
entkube-data:
caddy-data:
caddy-config: