Skip to content

Can environment variables be used to configure the server? #1701

Answered by charithe
glen-84 asked this question in Q&A
Discussion options

You must be logged in to vote

Newer versions of Cerbos don't require a config file. So, you can still have a "no-config-file" setup in Docker Compose like this:

services:
  cerbos:
    image: ghcr.io/cerbos/cerbos:latest
    command: 
      - "server"
      - "--set=storage.driver=disk"
      - "--set=storage.disk.directory=${XDG_DATA_DIR}/cerbos" 

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@glen-84
Comment options

@alexolivier
Comment options

@glen-84
Comment options

@charithe
Comment options

Answer selected by alexolivier
@glen-84
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
3 participants
Converted from issue

This discussion was converted from issue #1700 on July 18, 2023 08:17.