|
| 1 | +version: "3.4" |
| 2 | + |
| 3 | +services: |
| 4 | + |
| 5 | + prosody: |
| 6 | + image: prosody/prosody:0.11.9 |
| 7 | + ports: |
| 8 | + - "5222:5222" # client to server connections |
| 9 | + - "5280:5280" # HTTP (including websocket) |
| 10 | + - "5000:5000" # file transfer proxy |
| 11 | + volumes: |
| 12 | + - ./prosody.cfg.lua:/etc/prosody/prosody.cfg.lua:ro # Prosody configuration |
| 13 | + - ./data:/var/lib/prosody # store Prosody data (ignored by git repo) |
| 14 | + - ./modules:/usr/lib/prosody/custom-modules |
| 15 | + - ./entrypoint.sh:/entrypoint.sh:ro # added to register user1 and user2 |
| 16 | + environment: |
| 17 | + # the 3 following variables register admin@localhost, user1@localhost and user2@localhost users (password = JID local part) |
| 18 | + - LOCAL=admin |
| 19 | + - PASSWORD=admin |
| 20 | + - DOMAIN=localhost |
| 21 | + extra_hosts: |
| 22 | + - "conference.localhost:127.0.0.1" # muc service |
| 23 | + - "upload.localhost:127.0.0.1" # file upload service |
| 24 | + - "anon.localhost:127.0.0.1" # anon host |
| 25 | + - "proxy.localhost:127.0.0.1" # file proxy service |
| 26 | + |
| 27 | + xmpp-web: |
| 28 | + image: nioc/xmpp-web:latest |
| 29 | + ports: |
| 30 | + - "80:80" |
| 31 | + # - "443:443" |
| 32 | + environment: |
| 33 | + - APP_NAME=XMPP Web Docker latest |
| 34 | + # - APP_WS=ws://localhost/xmpp-websocket #default |
| 35 | + - APP_REGISTERED_ACCESS=1 #1/0 |
| 36 | + - APP_GUEST_ACCESS=1 #1/0 |
| 37 | + - XMPP_ANON_HOST=anon.localhost |
| 38 | + - APP_IS_TRANSPORTS_USER_ALLOWED=1 #1/0 |
| 39 | + - APP_HTTP_AUTODISCOVERY=0 #1/0 |
| 40 | + - APP_RESOURCE=Web XMPP Docker latest |
| 41 | + - APP_DEFAULT_DOMAIN=localhost #mandatory |
| 42 | + - APP_DEFAULT_MUC=conference.localhost |
| 43 | + - APP_IS_STYLING_DISABLED=0 #1/0 |
| 44 | + - APP_HAS_SENDING_ENTER_KEY=0 #1/0 |
| 45 | + - XMPP_CONNECT_TIMEOUT=10000 |
| 46 | + - APP_PINNED_MUCS=['welcome@conference.localhost'] |
| 47 | + - XMPP_WS=http://prosody:5280/xmpp-websocket #mandatory, use XMPP service name as hostname |
| 48 | + # volumes: |
| 49 | + # - ./certs:/etc/nginx/certs |
0 commit comments