Skip to content

Environment configuration

Naomichi Yamakita edited this page Oct 22, 2021 · 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: Do not recommend using access key. Please use IAM role.
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "genova",
            "Effect": "Allow",
            "Action": [
                "iam:GetRole",
                "iam:PassRole",
                "kms:*",
                "ecs:*",
                "ecr:*",
                "events:*",
            ],
            "Resource": "*"
        }
    ]
}
  • ※2: AWS account number.
  • ※3: When auto-deployment with GitHub Webhook.
  • ※4: When deploying Slack.
Clone this wiki locally