Template
1
0

feat: update cerbos to use json

This commit is contained in:
2025-11-23 13:44:39 +00:00
parent 7504361d88
commit 2b462993cc
12 changed files with 120 additions and 188 deletions

View File

@@ -1,3 +1,11 @@
networks:
server:
name: server
volumes:
mongo:
driver: local
services:
# MongoDB
@@ -5,37 +13,33 @@ services:
# Used by event store and read store for managing and reading application data.
mongo:
image: mongo:8
restart: unless-stopped
image: mongo:8
container_name: boilerplate_mongo
ports:
- "27017:27017"
- 6017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
volumes:
- ./.volumes/mongo/local:/data/db
- mongo:/data/db
networks:
- localdev
- server
# Cerbos
# --------------------------------------------------------------------------------
# Policy engine for application access control.
cerbos:
container_name: cerbos
restart: unless-stopped
image: ghcr.io/cerbos/cerbos:latest
container_name: boilerplate_cerbos
command: ["server", "--config=/config.yaml"]
ports:
- "3592:3592"
- "3593:3593"
- "3594:3594"
- 6592:3592
- 6593:3593
- 6594:3594
volumes:
- ./cerbos.yaml:/config.yaml
- ./modules/identity/cerbos/policies:/data/policies/identity
- ./modules/workspace/cerbos/policies:/data/policies/workspace
networks:
- localdev
networks:
localdev:
driver: bridge
- server