Channels
contributing
sdk-kotlin
sdk-react
sdk-javascript
sdk-java
request-features
sdk-php
sdk-python
sdk-golang
sdk-swift
sdk-c-sharp
random
sdk-ruby
ask-questions
give-feedback
announcements
sdk-flutter
Powered by
#announcements
Title
e
enough-camera-64750
06/08/2023, 8:50 PM
image.png
f
fresh-football-47124
06/08/2023, 8:50 PM
Hi, please use threads
please share what your docker compose settings are for API_HOST and APP_ORIGIN
e
enough-camera-64750
06/08/2023, 8:52 PM
ok
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: - MONGODB_URI=
mongodb://root:password@mongo:27017/growthbook?authSource=admin
- APP_ORIGIN=
http://localhost:3000
- API_HOST=
http://44.228.128.51:3100
volumes: - uploads:/usr/local/src/app/packages/back-end/uploads volumes: uploads:
f
fresh-football-47124
06/09/2023, 2:09 AM
are you running GrowthBook on localhost or that IP?
the APP_ORIGIN is used for the CORS header - so that must match what the host of the APP is. The API_HOST is used as the routable address for the API from the APP.
3 Views
Post