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: Support for docker secrets #177

Closed
Natanel-Shitrit opened this issue Nov 28, 2023 · 2 comments
Closed

Feature Request: Support for docker secrets #177

Natanel-Shitrit opened this issue Nov 28, 2023 · 2 comments

Comments

@Natanel-Shitrit
Copy link

How?

Like mysql environment variable MYSQL_PASSWORD_FILE, an equivalent RESTIC_PASSWORD_FILE.

Example Usage

version: "3.3"

services:
  backup:
    image: mazzolino/restic
    hostname: docker
    restart: unless-stopped
    environment:
      # ...
      RESTIC_PASSWORD_FILE: /run/secrets/restic_password
      # ...
    secrets:
      - restic_password
secrets:
  restic_password:
    file: ./RESTIC_PWD
@Natanel-Shitrit
Copy link
Author

Never mind.. I should've searched restic issues first 🤦🏽‍♂️
restic/restic#278

@Natanel-Shitrit
Copy link
Author

Natanel-Shitrit commented Nov 28, 2023

And... this exact environment variable already exist...!
At least this will be here for documentation

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