2024-03-01 12:50:08 +01:00
|
|
|
services:
|
|
|
|
prosody:
|
2024-05-05 16:40:57 +02:00
|
|
|
image: prosody/xmpp:latest
|
2024-03-01 12:50:08 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "5000:5000"
|
|
|
|
- "5222:5222"
|
|
|
|
- "5223:5223"
|
|
|
|
- "5269:5269"
|
|
|
|
- "5281:5281"
|
|
|
|
environment:
|
|
|
|
DOMAIN: example.com
|
|
|
|
E2E_POLICY_WHITELIST: "admin@example.com, user1@example.com"
|
|
|
|
LOG_LEVEL: debug
|
|
|
|
PROSODY_ADMINS: "admin@example.com, admin2@example.com"
|
|
|
|
volumes:
|
|
|
|
- ./certs:/usr/local/etc/prosody/certs
|
|
|
|
|
|
|
|
prosody_postgres:
|
2024-05-05 16:40:57 +02:00
|
|
|
image: prosody/xmpp:latest
|
2024-03-01 12:50:08 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "5000:5000"
|
|
|
|
- "5222:5222"
|
|
|
|
- "5223:5223"
|
|
|
|
- "5269:5269"
|
|
|
|
- "5281:5281"
|
|
|
|
environment:
|
|
|
|
DOMAIN: example.com
|
|
|
|
E2E_POLICY_WHITELIST: "admin@example.com, user1@example.com"
|
|
|
|
LOG_LEVEL: debug
|
|
|
|
PROSODY_ADMINS: "admin@example.com, admin2@example.com"
|
|
|
|
#DB_DRIVER: "MySQL"
|
|
|
|
DB_DRIVER: "PostgreSQL"
|
|
|
|
DB_DATABASE: "prosody"
|
|
|
|
DB_HOST: "postgres"
|
|
|
|
DB_PORT: "5432"
|
|
|
|
DB_USERNAME: "prosody"
|
|
|
|
DB_PASSWORD: "prosody"
|
|
|
|
volumes:
|
|
|
|
- ./certs:/usr/local/etc/prosody/certs
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
image: postgres:15-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
POSTGRES_DB: prosody
|
|
|
|
POSTGRES_USER: prosody
|
|
|
|
POSTGRES_PASSWORD: prosody
|
|
|
|
|
|
|
|
prosody_ldap:
|
2024-05-05 16:40:57 +02:00
|
|
|
image: prosody/xmpp:latest
|
2024-03-01 12:50:08 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "5000:5000"
|
|
|
|
- "5222:5222"
|
|
|
|
- "5223:5223"
|
|
|
|
- "5269:5269"
|
|
|
|
- "5281:5281"
|
|
|
|
environment:
|
|
|
|
DOMAIN: example.com
|
|
|
|
E2E_POLICY_WHITELIST: "admin@example.com, user1@example.com"
|
|
|
|
LOG_LEVEL: debug
|
|
|
|
PROSODY_ADMINS: "admin@example.com, admin2@example.com"
|
|
|
|
AUTHENTICATION: "ldap"
|
|
|
|
LDAP_BASE: "dc=example,dc=com"
|
|
|
|
LDAP_SERVER: "glauth"
|
|
|
|
LDAP_ROOTDN: "cn=svc,dc=example,dc=com"
|
|
|
|
LDAP_PASSWORD: "12345678"
|
|
|
|
volumes:
|
|
|
|
- ./certs:/usr/local/etc/prosody/certs
|
|
|
|
depends_on:
|
|
|
|
- glauth
|
|
|
|
|
|
|
|
glauth:
|
|
|
|
image: glauth/glauth
|
|
|
|
volumes:
|
|
|
|
- "./glauth/config.cfg:/app/config/config.cfg"
|