elijahsgh/terraform-gke-ghost

Docker config.production.json

Closed this issue · 4 comments

Hi.

Trying to build Doker image, but looks like config.production.json file missing from repo. What is this file for ?

I have added all variables into a "terraform.tfvars" file, but it is not picking it up. Any idea why this could be? Here is the contents of the file ..

`db_instance = "< MY DB INSTANCE>"
db_password = "< MY DB PASSWORD>"
db_ip = "< MY DB IP>"
zone = "europe-west2"
region = "europe-west2-a"
project = ""
prefix = "ghost"
mail_password = ""
ghostimage = "ghost:latest"
backend_service_name = ""

ghost_envvars = {
url = "https://"
server__host = "0.0.0.0"
server__port = "2368"
NODE_ENV = "production"
logging__level = "info"
database__client = "mysql"

mail__transport = "SMTP"
mail__options__service = ""
mail__options__host = ""
mail__options__port = ""
mail__options__auth__user = ""
mail__options__secureConnection = "<SET TO TRUE OR OMIT IF NOT USING 465>"
storage__active = "gcloud"
storage__gcloud__projectId = ""
storage__gcloud__assetDomain = "<YOUR ASSET DOMAIN - LEAVE TRAILING SLASH>/"
storage__gcloud__insecure = false
storage__gcloud__maxAge = 3600
storage__gcloud__key = "/var/run/secrets/bucket/key.json"
}`

Hi.

Trying to build Doker image, but looks like config.production.json file missing from repo. What is this file for ?

Hi. Config.production.json is the Ghost CMS production settings.
You can read about it here: https://ghost.org/docs/config/

I have added all variables into a "terraform.tfvars" file, but it is not picking it up. Any idea why this could be?

This is a standard terraform module. It's meant to be used as a module. Are you cloning this repo and then using "terraform apply" with the terraform.tfvars above? It should still work like that.

Please open a new issue for this. This issue was about config.production.json

Config.production.json is the Ghost CMS production settings.
You can read about it here: https://ghost.org/docs/config/