https://www.growthbook.io/ logo
k

kind-judge-40442

01/19/2023, 10:51 AM
version: "3" services: mongo: image: "mongo:latest" environment: - MONGO_INITDB_ROOT_USERNAME=root - MONGO_INITDB_ROOT_PASSWORD=password growthbook: image: "growthbook/growthbook:latest" ports: - "3000:3000" - "3100:3100" depends_on: - mongo environment: - NODE_ENV=production - JWT_SECRET=sLgAwUBtSOFTvLsw - ENCRYPTION_KEY=sLgAwUBtSOFTvLsw - MONGODB_URI=mongodb://root:password@mongo:27017/ - APP_ORIGIN=http://0.0.0.0:3000 - API_HOST=http://172.31.2.219:3100 volumes: - uploads:/usr/local/src/app/packages/back-end/uploads volumes: uploads:
f

fresh-football-47124

01/19/2023, 11:16 AM
Hi Venkatesh, happy to help
I have a feeling 0.0.0.0 isn’t routable
k

kind-judge-40442

01/19/2023, 11:51 AM
ooh
should i change app_origin also to private ip
f

fresh-football-47124

01/19/2023, 11:52 AM
are you running it on localhost?
yes, most likely
are you running it on the same IP? the 172 one?
k

kind-judge-40442

01/19/2023, 11:52 AM
yes
f

fresh-football-47124

01/19/2023, 11:52 AM
yes, try changing that env variable and see
k

kind-judge-40442

01/19/2023, 11:52 AM
let me change and get back
f

fresh-football-47124

01/19/2023, 11:52 AM
👍
k

kind-judge-40442

01/19/2023, 11:58 AM
after changing the route of app_origin and api_host to private ip of my mechine
still getting Error connecting to the GrowthBook API
f

fresh-football-47124

01/19/2023, 11:59 AM
can you access the API url directly? if its working, you should see a json object returned
k

kind-judge-40442

01/19/2023, 12:00 PM
yes api i can able to access directly with 3100 port
can able to see json output
is there anything with port ipv4 and ipv6
f

fresh-football-47124

01/19/2023, 12:00 PM
can you paste the output?
k

kind-judge-40442

01/19/2023, 12:01 PM
in container i can see 3000 is running with ipv4 and 3100 is running with ipv6
f

fresh-football-47124

01/19/2023, 12:05 PM
what we want to make sure is that APP can route traffic to the API
can you check the console and make sure you’re not getting a CORS error?
k

kind-judge-40442

01/19/2023, 12:07 PM
let me check
f

fresh-football-47124

01/19/2023, 12:09 PM
Any errors in the container?
k

kind-judge-40442

01/19/2023, 12:09 PM
i don't see any error logs in container
yarn run v1.22.19 $ wsrun -p '*-end' -m start back-end | $ node dist/server.js front-end | $ next start | ready - started server on 0.0.0.0:3000, url: http://localhost:3000 back-end | {"level":30,"time":1674129444557,"pid":58,"hostname":"9c263118c40e","msg":"Back-end is running at http://localhost:3100 in production mode. Press CTRL-C to stop"}
f

fresh-football-47124

01/19/2023, 12:10 PM
you might try setting the API_HOST to http://localhost:3100
k

kind-judge-40442

01/19/2023, 12:10 PM
only api_host?
f

fresh-football-47124

01/19/2023, 12:11 PM
you can do both, but you may get a CORS error - but we can fix that
k

kind-judge-40442

01/19/2023, 12:11 PM
ok
console output
f

fresh-football-47124

01/19/2023, 12:14 PM
Did you set both to localhost?
lets try that
k

kind-judge-40442

01/19/2023, 12:14 PM
both i have set to localhost
f

fresh-football-47124

01/19/2023, 12:15 PM
got a moment to meet and share your screen?
k

kind-judge-40442

01/19/2023, 12:15 PM
yes
happy to share
can i share the google meet link?
f

fresh-football-47124

01/19/2023, 12:16 PM
ok
k

kind-judge-40442

01/19/2023, 12:18 PM
f

fresh-football-47124

01/19/2023, 12:20 PM
says waiting to join
k

kind-judge-40442

01/19/2023, 12:21 PM
let me check
f

freezing-apple-73992

02/01/2023, 10:34 AM
Same issue for me
Did we resolve this?
f

fresh-football-47124

02/01/2023, 4:45 PM
yes
just had to use the right IP address
4 Views