Skip to content

Commit

Permalink
fixing the spicedb docker compose setup (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
akoserwal authored Feb 9, 2024
1 parent ae2a1a6 commit 3a60ce8
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 53 deletions.
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ all:
make config;
make generate;

db:
./spicedb/start-postgresql.sh
.PHONY: db

spicedb:
./spicedb/start-spicedb.sh
.PHONY: spicedb
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ wire

## Spicedb using docker/podman

# Run the postgresql db
`make db`

## Run the spicedb
`make spicedb`

Expand Down
21 changes: 2 additions & 19 deletions spicedb/docker-compose.yaml → docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,10 @@
---
# This runs SpiceDB, using Postgres as the storage engine. SpiceDB will not have
# any schema written to it.
#
# Once the database service is running, the migrate service executes, running
# "spicedb migrate head" to migrate Postgres to the most current revision. After
# Postgres is migrated, the migrate service will stop.
#
# SpiceDB settings:
# pre-shared key: foobar
# dashboard address: http://localhost:8080
# metrics address: http://localhost:9090
# grpc address: http://localhost:50051
#
# Postgres settings:
# user: postgres
# password: secret
# port: 5432

version: "3"

services:
rebac:
image: "quay.io/ciam_authz/insights-rebac:latest"
build:
dockerfile: Dockerfile
profiles: ["rebac"]
restart: "always"
ports:
Expand Down
1 change: 0 additions & 1 deletion spicedb/secrets/db.name

This file was deleted.

1 change: 0 additions & 1 deletion spicedb/secrets/db.password

This file was deleted.

1 change: 0 additions & 1 deletion spicedb/secrets/db.user

This file was deleted.

2 changes: 1 addition & 1 deletion spicedb/start-insights-rebac.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
set -e
docker-compose --profile rebac -f ./spicedb/docker-compose.yaml up -d
docker-compose --env-file ./spicedb/.env --profile rebac -f ./docker-compose.yaml up -d --build
15 changes: 0 additions & 15 deletions spicedb/start-postgresql.sh

This file was deleted.

2 changes: 1 addition & 1 deletion spicedb/start-spicedb.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
set -e
docker-compose --env-file ./spicedb/.env -f ./spicedb/docker-compose.yaml up -d
docker-compose --env-file ./spicedb/.env -f ./docker-compose.yaml up -d
8 changes: 1 addition & 7 deletions spicedb/teardown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ source ./spicedb/check_docker_podman.sh

set -e

$DOCKER stop spicedb-datastore

$DOCKER rm spicedb-datastore

$DOCKER network rm spicedb-net

docker-compose -f ./spicedb/docker-compose.yaml down
docker-compose --env-file ./spicedb/.env -f ./docker-compose.yaml down


0 comments on commit 3a60ce8

Please sign in to comment.