| 1 |
# ejabberd for local XMPP E2E testing |
| 2 |
# |
| 3 |
# https://docs.ejabberd.im/CONTAINER/ |
| 4 |
# |
| 5 |
# Usage: |
| 6 |
# ./setup.sh |
| 7 |
# |
| 8 |
# Accounts (created on first start): |
| 9 |
# sender@localhost / senderpass |
| 10 |
# recipient@localhost / recipientpass |
| 11 |
# |
| 12 |
# Rooms: |
| 13 |
# [email protected] |
| 14 |
# [email protected] (password: roompass) |
| 15 |
|
| 16 |
services: |
| 17 |
ejabberd: |
| 18 |
image: ghcr.io/processone/ejabberd:26.07@sha256:5aeb0faa39cfe38792c5eea9cc6344ba9ab6c59c708a24e897d6b471882c8497 |
| 19 |
container_name: shoutrrr-xmpp-ejabberd |
| 20 |
ports: |
| 21 |
- "127.0.0.1:5222:5222" |
| 22 |
- "127.0.0.1:5223:5223" |
| 23 |
- "127.0.0.1:5224:5224" |
| 24 |
environment: |
| 25 |
- EJABBERD_MACRO_HOST=localhost |
| 26 |
- CTL_ON_CREATE=register sender localhost senderpass ; register recipient localhost recipientpass ; create_room alerts conference.localhost localhost ; create_room secret conference.localhost localhost ; change_room_option secret conference.localhost password roompass |
| 27 |
- CTL_ON_START=status |
| 28 |
volumes: |
| 29 |
- ./ejabberd.yml:/opt/ejabberd/conf/ejabberd.yml:ro |
| 30 |
- ./certs/server.pem:/opt/ejabberd/conf/server.pem:ro |
| 31 |
healthcheck: |
| 32 |
test: ["CMD", "ejabberdctl", "status"] |
| 33 |
interval: 10s |
| 34 |
timeout: 5s |
| 35 |
retries: 12 |
| 36 |
start_period: 20s |
| 37 |
restart: unless-stopped |