Skip to content

How to connect a with SpiceDB running inside a docker compose #1644

Closed Answered by vroldanbet
FernandoArteaga asked this question in Q&A
Discussion options

You must be logged in to vote

As you noted, you are most likely hitting authzed/authzed-py#89. Here is the simplest example I could come up with that works and does not involve a python client:

version: "3"

services:
  spicedb:
    image: "authzed/spicedb"
    command: "serve"
    restart: "always"
    ports:
      - "50051:50051"
    environment:
      - "SPICEDB_GRPC_PRESHARED_KEY=foobar"
      - "SPICEDB_DATASTORE_ENGINE=memory"
  my_service:
    image: authzed/zed:latest
    command: ["schema", "read", "--insecure=true", "--endpoint", "spicedb:50051", "--token", "foobar"]
    restart: unless-stopped
    depends_on:
      - spicedb

Replies: 2 comments

Comment options

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

You must be logged in to vote
0 replies
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