Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: environment variable configuration support #7

Open
kyoukaya opened this issue Feb 3, 2025 · 0 comments
Open

Feature Request: environment variable configuration support #7

kyoukaya opened this issue Feb 3, 2025 · 0 comments

Comments

@kyoukaya
Copy link

kyoukaya commented Feb 3, 2025

I would like to have a docker compose setup without bind mounts for ease of portability. Something along the lines of this example:

services:
  wol:
    image: ghcr.io/trugamr/wol
    command: serve
    network_mode: "host"
    # No volume binding required, but if present, would overwrite the CONFIG environment variable's value.
    # volumes:
      # - ./config.yaml:/etc/wol/config.yaml
    environment:
      CONFIG: |
        machines:
          - name: desktop
            mac: "00:11:22:33:44:55"
            ip: "192.168.1.100" # Optional, for status checking
          - name: server
            mac: "AA:BB:CC:DD:EE:FF"
            ip: "192.168.1.101" # Optional, for status checking
          server:
            listen: ":7777" # Optional, defaults to :7777

Would be happy to write the PR for it if you're fine with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant