blue-hamburger-60411
04/19/2023, 3:22 AMdocker-compose.yml config
growthbook:
environment:
- MONGODB_URI=<mongodb://root:xxx@mongo:27017/>
- APP_ORIGIN=<https://growthbook.example.com>
- API_HOST=<https://growthbook-api.example.com>
- NODE_ENV=production
- JWT_SECRET=qwertyuiopasdfghjklzxcvbnmertyui
- ENCRYPTION_KEY=qwertyuiosdfghnjmxcvbnmdfghj
GET <https://growthbook-api.example.com/>
Response
{"name":"GrowthBook API","production":true,"api_host":"<http://growthbook-api.example.com:3100>","app_origin":"<https://growthbook.example.com>","config_source":"db","email_enabled":false,"build":{"sha":"2dca1f35ceb8ff9748f380cfb6aa481a45109b2b","date":"2023-03-17T18:06:14Z"}}
GET <https://growthbook-api.example.com/organization>
Response
{"status":401,"message":"No authorization token was found"}
[1] Why is api_host in response shown as "http://growthbook-api.example.com:3100", config has this set as "https://growthbook-api.example.com"
[2] How do I resolve missing token issue, will appreciate any pointers.
Thank you 🙏fresh-football-47124
3000
is already being used), you need to update the above variables AND change the port mapping in `docker-compose.yml`:
growthbook:
ports:
- “4000:3000” # example: use 4000 instead of 3000 for the app
- “4100:3100" # example: use 4100 instead of 3100 for the api
...
environment:
- APP_ORIGIN=http://<my ip or url>:4000
- API_HOST=http://<my ip or url>:4100blue-hamburger-60411
04/19/2023, 9:23 AMOpen source platform for stress free deployments, measured impact, and smarter decisions.
Powered by