Skip to content

u/c0Re69

In this archive from Sep 2011 to May 2025

1
posts
35
comments
1
media
82
score

Top posts

Top comments

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:

  1. encrypt secrets with a local Vault (these are commited to the repo)
  2. use Consul templates to generate *.env files based on the Vault secrets
  3. 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>).

3 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.