ungleich-user/docker-compose.dev.yml

34 lines
1.1 KiB
YAML
Raw Normal View History

# Dev dependencies only. The Django app runs natively (no container) and
# 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.
#
# 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"
- "127.0.0.1:3636:636"
- "[::1]:3389:389"
- "[::1]:3636:636"
volumes:
- ./dev/ldap/export:/export
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