您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

docker-compose.yml 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. version: '2'
  2. services:
  3. database:
  4. build: ./postgresql
  5. container_name: mx-postgresql
  6. networks:
  7. mx.internal.docker:
  8. aliases:
  9. - postgresql.mx.internal.docker
  10. volumes:
  11. - ./data/postgresql/data:/var/lib/postgresql/data
  12. ports:
  13. - "34000:5432"
  14. env_file:
  15. - env
  16. postfixadmin:
  17. build: ./postfixadmin
  18. container_name: mx-postfixadmin
  19. networks:
  20. mx.internal.docker:
  21. aliases:
  22. - postfixadmin.mx.internal.docker
  23. ports:
  24. - "34001:80"
  25. env_file:
  26. - env
  27. postfix:
  28. build: ./postfix
  29. container_name: mx-postfix
  30. networks:
  31. mx.internal.docker:
  32. aliases:
  33. - postfix.mx.internal.docker
  34. mx-local.internal.docker:
  35. aliases:
  36. - smtp.mx-local.internal.docker
  37. ports:
  38. - "0.0.0.0:25:25"
  39. - "0.0.0.0:587:587"
  40. env_file:
  41. - env
  42. dovecot:
  43. build: ./dovecot
  44. container_name: mx-dovecot
  45. networks:
  46. mx.internal.docker:
  47. aliases:
  48. - dovecot.mx.internal.docker
  49. mx-local.internal.docker:
  50. aliases:
  51. - imap.mx-local.internal.docker
  52. volumes:
  53. - ./data/dovecot/email:/var/email
  54. - ./data/dovecot/sieve:/etc/dovecot/sieve
  55. ports:
  56. - "0.0.0.0:110:110"
  57. - "0.0.0.0:143:143"
  58. - "0.0.0.0:993:993"
  59. - "0.0.0.0:995:995"
  60. - "0.0.0.0:4190:4190"
  61. env_file:
  62. - env
  63. opendkim:
  64. build: ./opendkim
  65. container_name: mx-opendkim
  66. networks:
  67. mx.internal.docker:
  68. aliases:
  69. - opendkim.mx.internal.docker
  70. volumes:
  71. - ./data/opendkim/keys:/etc/opendkim/keys
  72. env_file:
  73. - env
  74. networks:
  75. mx.internal.docker:
  76. mx-local.internal.docker: