Skip to content

Environment configuration

Naomichi Yamakita edited this page Jan 30, 2020 · 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
GENOVA_URL http://localhost:3000 Yes Console URL
GITHUB_ACCOUNT Yes Account name of GitHub
GITHUB_PEM ~/ssh/id_rsa Yes Secret key for getting source code from GitHub. Public keys must be registered in Keys deploy.
GITHUB_SECRET_KEY No (*3) GitHub Webhook secret key
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_API_TOKEN No (*4)
SLACK_CHANNEL No (*4) Slack notification channel
SLACK_CLIENT_ID No (*4)
SLACK_CLIENT_SECRET No (*4)
SLACK_HOST slack No
SLACK_PORT 9292 No
SLACK_VERIFICATION_TOKEN No (*4)
  • ※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",
                "sts:GetCallerIdentity"
                "kms:*",
                "ecs:*",
                "ecr:*",
                "events:*",
            ],
            "Resource": "*"
        }
    ]
}
  • ※2: AWS account number.
  • ※3: When auto-deployment with GitHub Webhook.
  • ※4: When deploying Slack.
Clone this wiki locally