-
Notifications
You must be signed in to change notification settings - Fork 0
Deployment
Allan Batista edited this page Jun 26, 2019
·
1 revision
This project was designed to be easy to deploy and maintain. Every thing is configured by environment variables and as docker image.
$ docker run -d -p 3000:3000 allanbatista/deep-thought-api
$ docker run -d -p 3030:3030 allanbatista/deep-thought-ui
#General
DEEP_THOUGHT__PROTOCOL = http
DEEP_THOUGHT__PORT = 3000
DEEP_THOUGHT__HOSTNAME = deepthought.localhost.com
DEEP_THOUGHT__LOG_LEVEL = INFO # ERROR, WARNING, INFO, DEBUG
DEEP_THOUGHT__RAILS_LOG_TO_STDOUT = true # true | false
# Database
DEEP_THOUGHT__DB__URI = mongodb://user:pass@hostname:port/database # mongodb uri
# Authentication
DEEP_THOUGHT__AUTH__GOOGLE_CLIENT_ID = # this is required
DEEP_THOUGHT__AUTH__GOOGLE_CLIENT_SECRET = # this is required
DEEP_THOUGHT__AUTH__JWT_SECRET_KEY = random # every application restart it will be change
DEEP_THOUGHT__AUTH__EMAIL_DOMAIN_PATTERN = .*
DEEP_THOUGHT__AUTH__CALLBACK_ENDPOINT = http://deepthought.localhost.com/ # callback endpoint after authentication