Haraka-Wildduck Docker Mail Server with NodeJS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.6 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. version: '3'
  2. services:
  3. wildduck:
  4. build: ./wildduck
  5. hostname: wildduck
  6. container_name: wildduck
  7. restart: always
  8. environment:
  9. - DOMAIN=domain.com
  10. - REVERSE_DNS=com.domain
  11. entrypoint:
  12. - /bin/bash
  13. - /entrypoint.sh
  14. ports:
  15. - "25:25/tcp"
  16. - "465:465/tcp"
  17. - "993:993/tcp"
  18. expose:
  19. - 80
  20. - 12080
  21. volumes:
  22. - ./entrypoint.sh:/entrypoint.sh:ro
  23. - ./secure:/secure:ro
  24. - ./wildduck/haraka/attachments:/home/node/Haraka/attachments
  25. depends_on:
  26. - redis
  27. - mongo
  28. networks:
  29. mailnet:
  30. redis:
  31. image: redis
  32. hostname: redis
  33. container_name: redis
  34. restart: always
  35. # volumes:
  36. # - ./redis:/data
  37. expose:
  38. - 6379
  39. networks:
  40. mailnet:
  41. mongo:
  42. image: mongo
  43. hostname: mongo
  44. container_name: mongo
  45. restart: always
  46. # volumes:
  47. # - ./mongodb:/data/db
  48. expose:
  49. - 27017
  50. networks:
  51. mailnet:
  52. webmail:
  53. build:
  54. context: ./webmail
  55. args:
  56. - DOMAIN=domain.com
  57. hostname: webmail
  58. container_name: webmail
  59. restart: always
  60. entrypoint:
  61. - node
  62. - server.js
  63. - --config=/webmail/config/default.toml
  64. expose:
  65. - 3000
  66. depends_on:
  67. - redis
  68. - mongo
  69. - wildduck
  70. networks:
  71. mailnet:
  72. networks:
  73. mailnet: