-
Notifications
You must be signed in to change notification settings - Fork 12
Environment configuration
Naomichi Yamakita edited this page Dec 11, 2022
·
16 revisions
Please define environment variables in .env
.
Environment name | Default | Required | Description |
---|---|---|---|
AWS_ACCESS_KEY | No | (*1) | |
AWS_ACCOUNT_ID | (Account number of current environment) | No | (*2) |
AWS_REGION | ap-northeast-1 | Yes | |
AWS_SECRET_KEY | No | (*1) | |
DOCKER_RESTART | always | Yes | Docker restart mode |
REDIS_DB | 0 | Yes | |
REDIS_HOST | redis | Yes | |
REDIS_PORT | 6379 | Yes | |
RAILS_ENV | production | Yes | |
MONGO_DB | bot-server_development | Yes | |
MONGO_DB_TEST | bot-server_test | Yes | |
MONGO_HOST | mongo | Yes | |
MONGO_PORT | 27017 | Yes | |
SECRET_KEY_BASE | Yes | Rails secret key. | |
SLACK_HOST | slack | No | |
SLACK_PORT | 9292 | No |
- ※1: Deployment is recommended using IAM policies rather than access keys.
- ※2: AWS account number.
- ※3: When auto-deployment with GitHub Webhook.
- ※4: When deploying Slack.