How to mount a file in a container via stack files

I'm using a stack file (cycle.json) in my repo and I have a container for grafana which needs a config file mounted in the container. I know I can update this file in the portal but is there a way to define the file in the stack file so I can just update it in code?

Sami Suteria...

    Hey Sami, great question.

    The best way to do this IMO is using the scoped variable file type, but there are two implementation choices.

    1. You define the scoped variable and the config file in the stack. You can use stack variables to abstract the values out of the repo itself. If you do this you'll want the "blob" type to preserve formatting.
    2. You define a scoped variable file type in the environment and then set the "container identifiers" to the identifier for that container.
    Christopher Aubuchon...

Join the conversation

Sign in with your Cycle account to reply to this thread.

v2026.06.23.01 · © 2026 Petrichor Holdings, Inc.
Cookies

Cookies Preferences

We run basic, anonymous analytics by default to measure site traffic. By clicking "Accept," you allow additional cookies for advanced app improvements and tailored advertising. Choose what you share by clicking "Customize."