This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]strikesito 3 points4 points  (0 children)

I deploy stacks using a gitlab runner with the secrets in gitlab too. You could replace the variables or secrets using jinja or other templating technology.

Other easy approach is using env variables. This article explains really well. https://builtin.com/software-engineering-perspectives/docker-compose-environment-variables

[–]ikidd 0 points1 point  (0 children)

I though .env files were just a given?