Skip to content
Discussion options

You must be logged in to vote

Done a bit of reading and the easiest option might actually be to use an environmental variable, then garage.toml can be static and we could run the garage container like this.

  garage:
    image: dxflrs/garage:v2.2.0
    ports:
      - "${HOST_PORT_GARAGE_S3:-3900}:3900"
    environment:
      GARAGE_RPC_SECRET: ${GARAGE_RPC_SECRET}
      # GARAGE_RPC_SECRET_FILE: /run/typetype-secrets/garage_rpc_secret
    volumes:
      - typetype_secrets:/run/typetype-secrets
      - ./garage.toml:/etc/garage.toml:ro
      - garage_meta:/var/lib/garage/meta
      - garage_data:/var/lib/garage/data
    restart: unless-stopped
# Generate with openssl rand -hex 32
GARAGE_RPC_SECRET=42e8720bde3faf2316254…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Priveetee
Comment options

You must be logged in to vote
1 reply
@arcoast
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants