Skip to content

Commit

Permalink
Replace rebac with relations-api in docker compose config.
Browse files Browse the repository at this point in the history
  • Loading branch information
merlante committed Jun 18, 2024
1 parent 2e696b5 commit 2fbfbbf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
services:
rebac:
relations-api:
image: "quay.io/cloudservices/kessel-relations:latest"
environment:
- "SPICEDB_PRESHARED=${SPICEDB_GRPC_PRESHARED_KEY}"
# - "SPICEDB_PRESHARED_FILE=/run/secrets/spicedb_pre_shared"
- "SPICEDB_ENDPOINT=spicedb:50051"
build:
dockerfile: Dockerfile
profiles: ["rebac"]
profiles: ["relations-api"]
secrets:
- spicedb_pre_shared
restart: "always"
Expand Down
2 changes: 1 addition & 1 deletion spicedb/start-relations-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ set -e
# Function to check if a command is available
source ./spicedb/check_docker_podman.sh

${DOCKER} compose --env-file ./spicedb/.env --profile rebac -f ./docker-compose.yaml up -d --build
${DOCKER} compose --env-file ./spicedb/.env --profile relations-api -f ./docker-compose.yaml up -d --build
2 changes: 1 addition & 1 deletion spicedb/stop-relations-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
set -e
# Function to check if a command is available
source ./spicedb/check_docker_podman.sh
${DOCKER} compose --env-file ./spicedb/.env --profile rebac -f docker-compose.yaml down
${DOCKER} compose --env-file ./spicedb/.env --profile relations-api -f docker-compose.yaml down

0 comments on commit 2fbfbbf

Please sign in to comment.