fix: use Docker container name for Metabase internal communication
All checks were successful
build-and-deploy / build (push) Successful in 44s
build-and-deploy / deploy (push) Successful in 4s

Change Metabase URL from public domain to Docker container name
for proper internal network communication between containers.

Changes:
- Update default METABASE_URL to http://metabase:3000
- Docker DNS resolution works correctly with container names
- Maintains public domain fallback via environment variables

This fixes authentication issues when containers communicate
within the same Docker network.
This commit is contained in:
2025-10-13 17:52:52 -06:00
parent 244b1ae7fb
commit 42c1e20ee3
3 changed files with 5 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
NUXT_PUBLIC_AUTHENTIK_URL=https://authentik.nucleoriofrio.com
# Metabase Configuration (server-side only)
METABASE_URL=https://metabase.nucleoriofrio.com
# Use container name for Docker internal communication
METABASE_URL=http://metabase:3000
METABASE_EMAIL=your-email@domain.com
METABASE_PASSWORD=your-password

View File

@@ -142,7 +142,8 @@ export default defineNuxtConfig({
},
runtimeConfig: {
// Server-side only
metabaseUrl: process.env.METABASE_URL || 'https://metabase.nucleoriofrio.com',
// Use container name for Docker internal communication
metabaseUrl: process.env.METABASE_URL || 'http://metabase:3000',
metabaseEmail: process.env.METABASE_EMAIL || 'claudeCode0@nucleoriofrio.com',
metabasePassword: process.env.METABASE_PASSWORD || 'vK^NyZdZDH#p',
// Public (client + server)

View File

@@ -5,7 +5,7 @@
*/
const config = useRuntimeConfig()
const METABASE_URL = config.metabaseUrl || 'https://metabase.nucleoriofrio.com'
const METABASE_URL = config.metabaseUrl || 'http://metabase:3000'
const METABASE_EMAIL = config.metabaseEmail || 'claudeCode0@nucleoriofrio.com'
const METABASE_PASSWORD = config.metabasePassword || 'vK^NyZdZDH#p'