Environment Variable Configuration for mini OSS Insight

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: mini OSS Insight的环境变量配置

| username: jiangcg

According to the instructions in the workshop: mini OSS Insight Step by Step, an error occurs when executing docker compose up.
Locally, I installed the minimal version of Centos 8 through VirtualBox, then installed the Nodejs and Ruby environments. I configured the environment variables GITHUB_TOKEN, API_DATABASE_URL, and ETL_DATABASE_URL, one of which is configured as follows:
export API_DATABASE_URL=“host: ‘gateway01.ap-southeast-1.prod.aws.tidbcloud.com’, port: 4000, user: ‘2rqzpAmEwbVmk6Y.root’, password: ‘GsfJbYw9HVKQ0zex’, database: ‘gharchive_dev’, ssl: {minVersion: ‘TLSv1.2’, rejectUnauthorized: true}”;
I successfully created the database and tables in the TiDB Cloud serverless cluster, but the api and etl services failed to start, reporting a connection failure to 127.0.0.1:3306.
Is it an environment or configuration issue?

| username: sunxiaoguang | Original post link

The error message indicates that it is trying to connect to a local database, not the TiDB Cloud service. You need to check how the application configuration specifies the server address.
Also, never put your password on the public internet; go reset your password immediately.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.