Yes, you can supply different environment variables (DB_URL, DB_PASS, etc.), and you use those in the app config.
I've played around with something similar recently:
encrypt secrets with a local Vault (these are commited to the repo)
use Consul templates to generate *.env files based on the Vault secrets
use the *.env files in Docker Compose (services.site.env_file: [ site.env ]).
The file name (site.env) is the same for all stages, but the content differs because in step 2, the stage is supplied as an argument: make env production. This then makes the script to grab the production template as a base (templates/site.production.env.ctpl) which refers to the production Vault secret (secrets/production/site/<item>).
Can you share a quick rundown of your gear? I'm mainly interested what hardware was your iPhone looking through.
Thanks for the advice! I'm seriously considering trying it out. What's the business model for your games? Ads or some kind of a subscription?
For one, they seem to be moving towards repairability, which is a breath of fresh air these days.
A dinosaur.
Yes, you can supply different environment variables (
DB_URL,DB_PASS, etc.), and you use those in the app config.I've played around with something similar recently:
*.envfiles based on the Vault secrets*.envfiles in Docker Compose (services.site.env_file: [ site.env ]).The file name (
site.env) is the same for all stages, but the content differs because in step 2, the stage is supplied as an argument:make env production. This then makes the script to grab the production template as a base (templates/site.production.env.ctpl) which refers to the production Vault secret (secrets/production/site/<item>).