2026-11-06 14:46:24 +03:00
|
|
|
# Dev dependencies only. The Django app runs natively (no container) and
|
2026-11-10 14:54:20 +03:00
|
|
|
# talks to LDAP on ldap://localhost:3389 (StartTLS) and ldaps://localhost:3636,
|
|
|
|
|
# and, if DATABASE_HOST=localhost is set, to PostgreSQL on localhost:5433
|
|
|
|
|
# (SQLite is used otherwise). The LDAP CA certificate is written to
|
|
|
|
|
# dev/ldap/export/ca.crt on every start.
|
2026-11-06 14:46:24 +03:00
|
|
|
#
|
|
|
|
|
# docker compose -f docker-compose.dev.yml up -d --build
|
|
|
|
|
# docker compose -f docker-compose.dev.yml up -d --force-recreate ldap # reset data
|
|
|
|
|
services:
|
|
|
|
|
ldap:
|
|
|
|
|
build: dev/ldap
|
|
|
|
|
image: ungleich-user-dev-ldap:2.6
|
|
|
|
|
environment:
|
|
|
|
|
LDAP_ADMIN_PASSWORD: admin
|
|
|
|
|
ports:
|
|
|
|
|
- "127.0.0.1:3389:389"
|
2026-11-10 14:54:20 +03:00
|
|
|
- "127.0.0.1:3636:636"
|
|
|
|
|
- "[::1]:3389:389"
|
|
|
|
|
- "[::1]:3636:636"
|
|
|
|
|
volumes:
|
|
|
|
|
- ./dev/ldap/export:/export
|
2026-11-06 15:31:01 +03:00
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
|
image: postgres:18-alpine
|
|
|
|
|
environment:
|
|
|
|
|
POSTGRES_DB: ungleich_user
|
|
|
|
|
POSTGRES_USER: ungleich_user
|
|
|
|
|
POSTGRES_PASSWORD: dev-only
|
|
|
|
|
ports:
|
|
|
|
|
- "127.0.0.1:5433:5432"
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "pg_isready", "-U", "ungleich_user"]
|
|
|
|
|
interval: 3s
|
|
|
|
|
retries: 20
|