Skip to content

Docker installations should have state.yaml mounted persistently #112

@davidski

Description

@davidski

volumes:
# If you followed the guide on our readme, these paths work out of the box
- ./config.yaml:/app/config.yaml
- ./certs:/app/certs

The current suggested docker compose file doesn't have a persistent mapping for the state.yaml file. Since the state.yaml has the entertainment groups (among other Hue-specific bits) included in it, if the container is recreated that persistent information will be lost.

I've addressed this by copying out the state.yaml from a running bifrost container and then mounting it just like the config.yaml. There may be a chicken-and-egg problem for new installs when the state.yaml does not exist, but I think touching the state.yaml before container creation may fix that.

I believe there are other issues about moving the binary into a separate location than the config, which would allow mounting the subdirectory as a persistent volume, solving this as well.

Thanks for the project! ❤️

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions