Skip to content

Commit

Permalink
Fixed langtrace configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Luisotee committed Jan 23, 2025
1 parent 5949a69 commit b56cf03
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion deploy/langtrace-stack/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
env_file:
- .env
ports:
- "${POSTGRES_PORT}:5432"
- "${POSTGRES_PORT}"
volumes:
- postgres-data:/var/lib/postgresql/data

Expand Down
20 changes: 10 additions & 10 deletions deploy/langtrace-stack/export-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@ const envVars = {
PORT: config.ports.langtrace,

// Postgres settings
POSTGRES_HOST: config.databases.langtrace_postgres.host,
POSTGRES_HOST: `${config.databases.langtrace_postgres.host}:5432`, // Add port to host
POSTGRES_USER: config.databases.langtrace_postgres.user,
POSTGRES_PASSWORD: config.databases.langtrace_postgres.password,
POSTGRES_DATABASE: config.databases.langtrace_postgres.database,
POSTGRES_DB: config.databases.langtrace_postgres.database,
POSTGRES_URL: `postgres://${config.databases.langtrace_postgres.user}:${config.databases.langtrace_postgres.password}@${config.databases.langtrace_postgres.host}/${config.databases.langtrace_postgres.database}`,
POSTGRES_PRISMA_URL: `postgres://${config.databases.langtrace_postgres.user}:${config.databases.langtrace_postgres.password}@${config.databases.langtrace_postgres.host}/${config.databases.langtrace_postgres.database}?pgbouncer=true&connect_timeout=15`,
POSTGRES_URL_NO_SSL: `postgres://${config.databases.langtrace_postgres.user}:${config.databases.langtrace_postgres.password}@${config.databases.langtrace_postgres.host}/${config.databases.langtrace_postgres.database}`,
POSTGRES_URL_NON_POOLING: `postgres://${config.databases.langtrace_postgres.user}:${config.databases.langtrace_postgres.password}@${config.databases.langtrace_postgres.host}/${config.databases.langtrace_postgres.database}`,
POSTGRES_URL: `postgres://${config.databases.langtrace_postgres.user}:${config.databases.langtrace_postgres.password}@${config.databases.langtrace_postgres.host}:5432/${config.databases.langtrace_postgres.database}`,
POSTGRES_PRISMA_URL: `postgres://${config.databases.langtrace_postgres.user}:${config.databases.langtrace_postgres.password}@${config.databases.langtrace_postgres.host}:5432/${config.databases.langtrace_postgres.database}?pgbouncer=true&connect_timeout=15`,
POSTGRES_URL_NO_SSL: `postgres://${config.databases.langtrace_postgres.user}:${config.databases.langtrace_postgres.password}@${config.databases.langtrace_postgres.host}:5432/${config.databases.langtrace_postgres.database}`,
POSTGRES_URL_NON_POOLING: `postgres://${config.databases.langtrace_postgres.user}:${config.databases.langtrace_postgres.password}@${config.databases.langtrace_postgres.host}:5432/${config.databases.langtrace_postgres.database}`,
POSTGRES_IMAGE_TAG: "16",
POSTGRES_PORT: config.ports.db.postgres,
POSTGRES_PORT: config.ports.db.langtrace_postgres,

// App settings
NEXT_PUBLIC_APP_NAME: config.services.langtrace.api.host,
NEXT_PUBLIC_APP_NAME: `http://localhost:${config.ports.langtrace}/api/trace`,
NEXT_PUBLIC_ENVIRONMENT: "production",
NEXT_PUBLIC_HOST: "http://localhost:3000",
NEXT_PUBLIC_HOST: `http://localhost:${config.ports.langtrace}`,
NEXTAUTH_SECRET: config.services.dashboard.auth.nextauth_secret,
NEXTAUTH_URL: "http://localhost:3000",
NEXTAUTH_URL_INTERNAL: "http://localhost:3000",
NEXTAUTH_URL: `http://localhost:${config.ports.langtrace}`,
NEXTAUTH_URL_INTERNAL: `http://localhost:${config.ports.langtrace}`,

// Clickhouse settings
CLICK_HOUSE_HOST: config.databases.langtrace_clickhouse.host,
Expand Down

0 comments on commit b56cf03

Please sign in to comment.