Hello there, I want to deploy growthbook in docke...
# ask-questions
b
Hello there, I want to deploy growthbook in docker, but I have an error in GUI "Unexpected token '<', "<!DOCTYPE "... is not valid JSON" I took a standart docker-compose.yml and change only that
environment:
- APP_ORIGIN=172.17.0.1:3000
- API_HOST=172.17.0.1:3100
- JWT_SECRET=1234566
- ENCRYPTION_KEY=4daHS2zS5cJGAtl2
- NODE_ENV=dev
this ip is default ip of docker0 interface. Api page opens on that api and port.
f
can you access the API directly?
it should load a json file with some config info if it works
you can also check the docker container logs for more information - its likely that the API request that is expecting a JSON object is failing because the API is returning an error
b
Hi, yes api works by directly access. I redeployed compose, and finnaly it's work. Thanks.
f
@best-magazine-32978 what did you change to fix this issue? I'm also facing the same issue
f
You'll either see the error when you visit the API url directly, or you'll see the error log from docker