Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: mini OSS Insight的环境变量配置
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?