@@ -136,69 +136,12 @@ services:
136136 - PGUSER=username
137137 - PGPASSWORD=password
138138 - PGDATABASE=postgis
139- - POSTGRES_MULTIPLE_DATABASES=spicedb
140139 ports :
141140 - " ${MY_DOCKER_IP:-127.0.0.1}:5439:5432"
142141 command : postgres -N 500
143142 volumes :
144- - ./dockerfiles/scripts/docker-postgresql-multiple-databases.sh:/docker-entrypoint-initdb.d/docker-postgresql-multiple-databases.sh
145143 - ./.pgdata:/var/lib/postgresql/data
146144
147- spicedb-migrate :
148- image : authzed/spicedb
149- command : migrate head
150- restart : on-failure
151- environment :
152- - SPICEDB_DATASTORE_ENGINE=postgres
153- - SPICEDB_DATASTORE_CONN_URI=postgres://username:password@database:5432/spicedb?sslmode=disable
154- depends_on :
155- - database
156-
157- spicedb :
158- image : authzed/spicedb
159- command : serve --http-enabled
160- restart : always
161- ports :
162- - 8443:8443 # HTTP API
163- - 9090:9090 # Prometheus metrics
164- - 50051:50051 # gRPC API
165- environment :
166- - SPICEDB_GRPC_PRESHARED_KEY="eoapi-secret-token"
167- - SPICEDB_DATASTORE_ENGINE=postgres
168- - SPICEDB_DATASTORE_CONN_URI=postgres://username:password@database:5432/spicedb?sslmode=disable
169- - SPICEDB_HTTP_ENABLED=true
170- depends_on :
171- - spicedb-migrate
172-
173- spicedb-init :
174- image : authzed/zed
175- command : import file:///home/spicedb/zed.yaml
176- restart : on-failure
177- environment :
178- - ZED_ENDPOINT=spicedb:50051
179- - ZED_INSECURE=true
180- - ZED_TOKEN=eoapi-secret-token
181- volumes :
182- - type : bind
183- source : ./runtime/spicedb/init
184- target : /home/spicedb
185- depends_on :
186- - spicedb
187-
188- spicedb-ui :
189- build :
190- context : ./runtime/spicedb/spicedb-ui
191-
192- # Set environment variables directly in the docker-compose file
193- environment :
194- - SPICEDB_TOKEN=eoapi-secret-token
195- volumes :
196- - ./runtime/spicedb/spicedb-ui/src:/app/src
197- - ./runtime/spicedb/spicedb-ui/public:/app/public
198- restart : always
199- ports :
200- - 3000:3000
201-
202145 keycloak :
203146 image : quay.io/keycloak/keycloak:latest
204147 environment :
0 commit comments