docker-compose.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. version: '3'
  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. entrypoint: /home/ejabberd/entrypoint.sh
  19. command: foreground
  20. volumes:
  21. - ./entrypoint.sh:/home/ejabberd/entrypoint.sh:ro
  22. - ./data/conf/ejabberd.yml:/home/ejabberd/conf/ejabberd.yml:ro
  23. - ./data/conf.d/:/home/ejabberd/conf/conf.d/:ro
  24. - ./data/database/:/home/ejabberd/database/
  25. - ./data/backup/:/home/ejabberd/backup/
  26. - ./data/upload/:/home/ejabberd/upload/
  27. - /opt/docker/reverse-proxy/data/certs/${HOSTNAME}:/etc/ssl/ejabberd:ro
  28. environment:
  29. IP_ADDRESS: ${IP_ADDRESS}
  30. VIRTUAL_HOST: >
  31. ${HOSTNAME},
  32. conference.${HOSTNAME},
  33. pubsub.${HOSTNAME},
  34. upload.${HOSTNAME},
  35. irc.${HOSTNAME},
  36. proxy.${HOSTNAME},
  37. push.${HOSTNAME}
  38. LETSENCRYPT_HOST: >
  39. ${HOSTNAME},
  40. conference.${HOSTNAME},
  41. pubsub.${HOSTNAME},
  42. upload.${HOSTNAME},
  43. irc.${HOSTNAME},
  44. proxy.${HOSTNAME},
  45. push.${HOSTNAME}
  46. LETSENCRYPT_EMAIL: webmaster@${HOSTNAME}
  47. networks:
  48. - reverse-proxy_default
  49. networks:
  50. reverse-proxy_default:
  51. external: true