Skip to content

Allow setting env vars #148

Open

Description

@mikestreety

We currently use DDEV for local development and I was looking into Flock to see if it could replace it.

It's so nearly there (thank you - it's great!) however one feature that is missing is being able to set & share local env vars.

We define the "environment" to ensure URLs and other local dev switches are turned on. I appreciate we could use a .env.local style file, but it's nice to keep this currently in the ddev config to avoid any spill into production

Example

We currently have this in our .ddev/config.yaml

web_environment:
    - TYPO3_CONTEXT=Development/Local
    - INSTANCE=local

Solution

It seems it would fit quite nicely in the flock.yml as a top-level env key (like you have for Git worktrees).

Thanks

Activity

  1. onairmarc commented on Nov 10, 2026

    @onairmarc
    Member

    I like the idea. You want to contribute it @mikestreety? We'd need to discuss how to share the env vars securely and without committing them in plain text of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions