docker-compose.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. # - 80:8080/tcp #acme
  18. volumes:
  19. - ./data/conf/ejabberd.yml:/home/ejabberd/conf/ejabberd.yml:ro
  20. - ./data/conf/conf.d:/home/ejabberd/conf/conf.d:ro
  21. - ./data/database/:/home/ejabberd/database/
  22. - ./data/backup/:/home/ejabberd/backup/
  23. - ./data/upload/:/home/ejabberd/upload/
  24. - /opt/docker/reverse-proxy/data/certs/${HOSTNAME}:/etc/ssl/ejabberd:ro
  25. environment:
  26. VIRTUAL_HOST: >
  27. ${HOSTNAME},
  28. conference.${HOSTNAME},
  29. pubsub.${HOSTNAME},
  30. upload.${HOSTNAME},
  31. irc.${HOSTNAME},
  32. proxy.${HOSTNAME},
  33. push.${HOSTNAME}
  34. LETSENCRYPT_HOST: >
  35. ${HOSTNAME},
  36. conference.${HOSTNAME},
  37. pubsub.${HOSTNAME},
  38. upload.${HOSTNAME},
  39. irc.${HOSTNAME},
  40. proxy.${HOSTNAME},
  41. push.${HOSTNAME}
  42. LETSENCRYPT_EMAIL: webmaster@${HOSTNAME}
  43. networks:
  44. - reverse-proxy_default
  45. networks:
  46. reverse-proxy_default:
  47. external: true