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.

docker-compose.yml 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. - ./data/postgresql/backup:/var/lib/postgresql/backup
  13. ports:
  14. - "127.0.0.1:34000:5432"
  15. env_file:
  16. - env
  17. postfixadmin:
  18. build: ./postfixadmin
  19. container_name: mx-postfixadmin
  20. networks:
  21. mx.internal.docker:
  22. aliases:
  23. - postfixadmin.mx.internal.docker
  24. ports:
  25. - "127.0.0.1:34001:80"
  26. env_file:
  27. - env
  28. postfix:
  29. build: ./postfix
  30. container_name: mx-postfix
  31. networks:
  32. mx.internal.docker:
  33. aliases:
  34. - postfix.mx.internal.docker
  35. ports:
  36. - "0.0.0.0:25:25"
  37. - "0.0.0.0:465:465"
  38. - "0.0.0.0:587:587"
  39. env_file:
  40. - env
  41. dovecot:
  42. build: ./dovecot
  43. container_name: mx-dovecot
  44. networks:
  45. mx.internal.docker:
  46. aliases:
  47. - dovecot.mx.internal.docker
  48. volumes:
  49. - ./data/dovecot/email:/var/email
  50. ports:
  51. - "0.0.0.0:110:110"
  52. - "0.0.0.0:143:143"
  53. - "0.0.0.0:993:993"
  54. - "0.0.0.0:995:995"
  55. - "0.0.0.0:4190:4190"
  56. env_file:
  57. - env
  58. opendkim:
  59. build: ./opendkim
  60. container_name: mx-opendkim
  61. networks:
  62. mx.internal.docker:
  63. aliases:
  64. - opendkim.mx.internal.docker
  65. volumes:
  66. - ./data/opendkim/keys:/etc/opendkim/keys
  67. env_file:
  68. - env
  69. milter-sasl:
  70. build: ./milter-sasl
  71. container_name: mx-milter-sasl
  72. networks:
  73. mx.internal.docker:
  74. aliases:
  75. - milter-sasl.mx.internal.docker
  76. env_file:
  77. - env
  78. networks:
  79. mx.internal.docker: