Skip to content

Add abstraction/command-control layer for running different configurations of Watchdog #103

@jkuester

Description

@jkuester

One of the nice things about Watchdog is that its configuration is setup to allow for different configurations of Watchdog containers to be deployed without needing to manually edit docker compose files. Instead, system admins just need to include their desired files when running docker compose commands.

The problem is (especially after #102) we are getting to have quite a few compose files and might end up with more in the future. It would be nice to have some abstraction layer above the compose files that would allow for flexibility without admins having to remember which compose files to include in each command.

There are a number of ways this could be implemented:

  • make file - IMHO the best way. Good balance of functionality, but still low-level and highly available
  • shell script - Very configurable and should work on most systems, but there can be lots of "magic" in scripts and might be annoying.
  • NPM scripts - Not great since the host would need Node installed...

With any of these methods, I think you could set an envar like WATCHDOG_MODE in the .env file and that could automatically cause the proper docker compose config to get selected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions