Skip to content
Discussion options

You must be logged in to vote

Hey, @TetraLama

Thanks for raising this issue! That's clearly a topic that must be improved in the documentation.

When you configure secrets in dockform.yml, the app decrypts them using SOPS and makes them available to Docker Compose as inline environment variables. But Docker Compose requires you to explicitly declare which environment variables each service should receive in your docker-compose.yml file.

Your dockform.yml configuration is good, but you also need to explicitly declare the environment variables in your docker-compose.yml:

services:
  app1:
    image: ubuntu
    command: tail -f /dev/null
    networks:
      - app1-net
    environment:
      - SECRET_KEY  # <- add this

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TetraLama
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