Hey, <https://docs.growthbook.io/self-host/env> Al...
# ask-questions
f
Hey, https://docs.growthbook.io/self-host/env All the changes of the environment variables has to be done on which file?
f
For self hosting, it’s typically done in the docker-compose file
f
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
Email is not required, but the MongoDB URI is required, or it will try localhost
f
Umm, no as in I want to setup the SMTP thing as well. So is the above file looks fine?
f
yes