Skip to content

Commit

Permalink
Update example to use new module arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhlobo committed Apr 29, 2021
1 parent ed07bf6 commit b8c3f2b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,24 @@ module "kubernetes" {
image = "${module.digitalocean.dcr_endpoint}/api:latest"
ports = [3000]
env_from_secrets = ["sphere"]
env = {
DB_POOL_SIZE = 16
}
init_container = {
command = ["bin/rails", "db:migrate"]
env_from_secrets = ["sphere"]
env = {
DB_POOL_SIZE = 1
}
}
}
worker = {
replicas = 1
image = "${module.digitalocean.dcr_endpoint}/worker:latest"
ports = []
env = {
QUEUES = "default:10"
}
init_command = ["bin/rails", "db:migrate"]
}
}
web_services = ["app", "api"]
Expand Down Expand Up @@ -98,6 +112,7 @@ module "kubernetes" {
secrets = {
sphere = {
DB_HOST = module.digitalocean.db_host
DB_PORT = module.digitalocean.db_port
DB_USER = module.digitalocean.db_user
DB_PASSWORD = module.digitalocean.db_password
DB_DATABASE = module.digitalocean.db_database
Expand Down

0 comments on commit b8c3f2b

Please sign in to comment.