https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
f

few-electrician-23747

04/12/2023, 10:54 AM
Hey, https://docs.growthbook.io/self-host/env All the changes of the environment variables has to be done on which file?
f

fresh-football-47124

04/12/2023, 10:58 AM
For self hosting, it’s typically done in the docker-compose file
f

few-electrician-23747

04/12/2023, 11:05 AM
Copy code
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=
      - EMAIL_HOST_USER=
      - EMAIL_HOST_PASSWORD=
      - EMAIL_ENABLED=
      - EMAIL_HOST=
      - EMAIL_PORT=
      - EMAIL_FROM=
    volumes:
      - uploads:/usr/local/src/app/packages/back-end/uploads
volumes:
  uploads:
Is this fine? "The values are not added"
f

fresh-football-47124

04/12/2023, 11:20 AM
Email is not required, but the MongoDB URI is required, or it will try localhost
f

few-electrician-23747

04/12/2023, 11:23 AM
Umm, no as in I want to setup the SMTP thing as well. So is the above file looks fine?
f

fresh-football-47124

04/12/2023, 11:24 AM
yes
16 Views