59 lines
1.2 KiB
YAML
59 lines
1.2 KiB
YAML
services:
|
|
db:
|
|
image: postgres:latest
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
POSTGRES_DB: ${DB_NAME}
|
|
POSTGRES_USER: ${DB_USER}
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
|
|
redis:
|
|
image: redis:latest
|
|
restart: unless-stopped
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- redis:/data
|
|
|
|
openldap:
|
|
image: osixia/openldap:latest
|
|
container_name: openldap
|
|
restart: unless-stopped
|
|
environment:
|
|
LDAP_ORGANISATION: "Schule"
|
|
LDAP_DOMAIN: "Schule.intern"
|
|
LDAP_ADMIN_PASSWORD: ${LDAP_ADMIN_PASSWORD}
|
|
ports:
|
|
- "389:389"
|
|
- "636:636"
|
|
volumes:
|
|
- openldap_data:/var/lib/ldap
|
|
- openldap_config:/etc/ldap/slapd.d
|
|
# Custom LDAP configuration
|
|
- ./crates/ldap/src/users.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/users.ldif
|
|
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD",
|
|
"ldapsearch",
|
|
"-x",
|
|
"-H",
|
|
"ldap://localhost",
|
|
"-b",
|
|
"dc=Schule,dc=intern",
|
|
]
|
|
interval: 30s
|
|
retries: 3
|
|
|
|
volumes:
|
|
postgres_data:
|
|
redis:
|
|
openldap_data:
|
|
openldap_config:
|