32 lines
759 B
YAML
32 lines
759 B
YAML
services:
|
|
cerbos:
|
|
container_name: cerbos
|
|
image: ghcr.io/cerbos/cerbos:latest
|
|
command: ["server", "--config=/config.yaml"] # <--- ensure config is used
|
|
ports:
|
|
- "3592:3592"
|
|
- "3593:3593"
|
|
- "3594:3594"
|
|
volumes:
|
|
- ./platform/cerbos/config.yaml:/config.yaml # <--- mount config
|
|
- ./platform/cerbos/policies:/data/policies # <--- mount policies
|
|
networks:
|
|
- localdev
|
|
|
|
mongo:
|
|
image: mongo:8
|
|
restart: unless-stopped
|
|
ports:
|
|
- "27017:27017"
|
|
environment:
|
|
MONGO_INITDB_ROOT_USERNAME: root
|
|
MONGO_INITDB_ROOT_PASSWORD: password
|
|
volumes:
|
|
- ./.volumes/mongo/local:/data/db
|
|
networks:
|
|
- localdev
|
|
|
|
networks:
|
|
localdev:
|
|
driver: bridge
|