docker-compose.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. version: '3.4'
  2. services:
  3. ejabberd:
  4. image: ejabberd/ecs:21.12
  5. container_name: ejabberd
  6. hostname: ${HOSTNAME}
  7. mem_limit: 512m
  8. restart: on-failure:3
  9. ports:
  10. - 5222:5222 #c2s stattls#
  11. - 5223:5223 #c2s ssl#
  12. - 5269:5269 #s2s#
  13. - 5280:5280 #bosh + admin#
  14. - 5443:5443 #http-upload#
  15. - 3478:3478/udp #stun/turn
  16. - 5349:5349/tcp #stuns/turns
  17. - 7777:7777 #proxy65
  18. expose:
  19. - 80
  20. entrypoint: /home/ejabberd/entrypoint.sh
  21. command: foreground
  22. healthcheck:
  23. # test: ["CMD", "nc", "-z", "ejabberd:5347"]
  24. test: /home/ejabberd/bin/ejabberdctl status | grep -q started
  25. interval: 15s #interval for the first and subsequent checks
  26. timeout: 10s
  27. retries: 3
  28. volumes:
  29. - ./entrypoint.sh:/home/ejabberd/entrypoint.sh:ro
  30. - ./data/conf/ejabberd.yml:/home/ejabberd/conf/ejabberd.yml:ro
  31. - ./data/conf.d/:/home/ejabberd/conf/conf.d/:ro
  32. - ./data/database/:/home/ejabberd/database/
  33. - ./data/backup/:/home/ejabberd/backup/
  34. - ./data/upload/:/home/ejabberd/upload/
  35. - ./data/www:/var/www/
  36. - /opt/docker/reverse-proxy/data/certs/${HOSTNAME}:/etc/ssl/ejabberd:ro
  37. environment:
  38. IP_ADDRESS: ${IP_ADDRESS}
  39. IRCPASS: ${IRCPASS}
  40. VIRTUAL_HOST: >
  41. ${HOSTNAME},
  42. conference.${HOSTNAME},
  43. pubsub.${HOSTNAME},
  44. upload.${HOSTNAME},
  45. irc.${HOSTNAME},
  46. proxy.${HOSTNAME},
  47. push.${HOSTNAME}
  48. LETSENCRYPT_HOST: >
  49. ${HOSTNAME},
  50. conference.${HOSTNAME},
  51. pubsub.${HOSTNAME},
  52. upload.${HOSTNAME},
  53. irc.${HOSTNAME},
  54. proxy.${HOSTNAME},
  55. push.${HOSTNAME}
  56. LETSENCRYPT_EMAIL: webmaster@${HOSTNAME}
  57. networks:
  58. - reverse-proxy_default
  59. - irc
  60. biboumi:
  61. image: louiz/biboumi:9.0
  62. container_name: ejabberd_biboumi
  63. mem_limit: 200m
  64. restart: on-failure:3
  65. ports:
  66. - 113:8113 #identd, used by irc servers to differentiate user coming from one host#
  67. depends_on:
  68. ejabberd:
  69. condition: service_healthy
  70. volumes:
  71. - ./data/biboumi/database/:/var/lib/biboumi/
  72. - ./data/biboumi/ca-bundle.crt:/etc/ssl/certs/ca-bundle.crt
  73. environment:
  74. BIBOUMI_HOSTNAME: irc.${HOSTNAME}
  75. BIBOUMI_PORT: 5347
  76. BIBOUMI_PASSWORD: ${IRCPASS}
  77. BIBOUMI_XMPP_SERVER_IP: ejabberd
  78. BIBOUMI_ADMIN: admin@${HOSTNAME}
  79. BIBOUMI_IDENTD_PORT: 8113 ## the biboumi has not the privilege to open port 113 directly
  80. BIBOUMI_log_level: 1 ## disable logging of chat messages
  81. networks:
  82. - irc
  83. networks:
  84. reverse-proxy_default:
  85. external: true
  86. irc: