diff --git a/.env.example b/.env.example index 40861b6..4e38d36 100644 --- a/.env.example +++ b/.env.example @@ -16,7 +16,7 @@ LOG_LEVEL=info # Reachable internally inside Umbrel's docker network. From your LAN it's also # at http://192.168.1.191:21000 but that path goes through umbrelOS auth. # Inside the Umbrel docker network, use the Datum service hostname directly. -DATUM_URL=http://datum_datum_1:21000 +DATUM_URL=http://10.21.0.11:21000 DATUM_ADMIN_USER=admin DATUM_ADMIN_PASSWORD= # How often to scrape /clients (ms). Datum updates per-worker hashrate every diff --git a/Dockerfile b/Dockerfile index c24bc37..0c7a5a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,7 +37,7 @@ COPY apps/api/package.json apps/api/ RUN pnpm install --filter @gashboard/api --prod --frozen-lockfile COPY --from=build-api /app/apps/api/dist apps/api/dist -COPY --from=build-web /app/apps/web/dist apps/api/public +COPY --from=build-web /app/apps/web/dist apps/web/dist USER node EXPOSE 1337 diff --git a/docker-compose.yml b/docker-compose.yml index 74f8f9b..3204bc8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,7 +20,10 @@ services: PORT: "1337" LOG_LEVEL: "${LOG_LEVEL:-info}" CORS_ORIGIN: "${CORS_ORIGIN:-}" - DATUM_URL: "${DATUM_URL:-http://datum_datum_1:21000}" + # Direct container IP from umbrel_main_network. Bypasses Docker DNS + # (which doesn't reliably alias container names across stacks). If your + # Datum container moves to a different IP, override DATUM_URL in env. + DATUM_URL: "${DATUM_URL:-http://10.21.0.11:21000}" DATUM_ADMIN_USER: "${DATUM_ADMIN_USER:-admin}" DATUM_ADMIN_PASSWORD: "${DATUM_ADMIN_PASSWORD?must be set}" DATUM_POLL_INTERVAL_MS: "${DATUM_POLL_INTERVAL_MS:-5000}"