forked from preset-io/agor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.postgres.yml
More file actions
29 lines (25 loc) · 1004 Bytes
/
Copy pathdocker-compose.postgres.yml
File metadata and controls
29 lines (25 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# PostgreSQL + RBAC Testing Environment
# Extends base docker-compose.yml with PostgreSQL database and RBAC features
#
# Usage: docker compose --profile postgres up
#
# This profile provides:
# - PostgreSQL database (instead of SQLite)
# - RBAC + Unix integration enabled
# - Test users (alice, bob) with Unix accounts
# - Test worktrees with ownership configured
#
# To test as alice/bob: docker exec -it <container> sudo su alice
services:
agor-dev:
environment:
# PostgreSQL database configuration
- AGOR_DB_DIALECT=postgresql
- DATABASE_URL=postgresql://agor:agor_dev_secret@postgres:5432/agor
# Enable RBAC + Unix integration
- AGOR_RBAC_ENABLED=${AGOR_RBAC_ENABLED:-true}
- AGOR_UNIX_USER_MODE=${AGOR_UNIX_USER_MODE:-insulated}
# Create test users (alice, bob) on startup
- CREATE_RBAC_TEST_USERS=${CREATE_RBAC_TEST_USERS:-true}
# Use PostgreSQL+RBAC-specific entrypoint
entrypoint: ['/usr/local/bin/docker-entrypoint-postgres.sh']