Skip to content
Discussion options

You must be logged in to vote

You can encrypt as many files as you want with your AGE secret key.
So you can either write your secrets in .env files for each service and encrypt the entire .env files or directly in the docker compose file and encrypt the specific lines (See SOPS docs on how to do that).

Doco-cd checks all files in the cloned repository if they are encrypted via SOPS and decrypts them if necessary before starting the deployment.

So for example with a global .env file and one for each service:

# .env
DB_PASSWORD=foo
# app.env
SOME_APP_SECRET=xyz
# db.env
DB_USER=postgres

Then encrypt the .env files and use them in your services.

# docker-compose.yml
services:
  app:
    env_file:
      - .env
      - ap…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cklyk-europa-uni
Comment options

Answer selected by cklyk-europa-uni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants