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 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. - "127.0.0.1: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. - "127.0.0.1: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. ports:
  35. - "0.0.0.0:25:25"
  36. - "0.0.0.0:587:587"
  37. env_file:
  38. - env
  39. dovecot:
  40. build: ./dovecot
  41. container_name: mx-dovecot
  42. networks:
  43. mx.internal.docker:
  44. aliases:
  45. - dovecot.mx.internal.docker
  46. volumes:
  47. - ./data/dovecot/email:/var/email
  48. ports:
  49. - "0.0.0.0:110:110"
  50. - "0.0.0.0:143:143"
  51. - "0.0.0.0:993:993"
  52. - "0.0.0.0:995:995"
  53. - "0.0.0.0:4190:4190"
  54. env_file:
  55. - env
  56. opendkim:
  57. build: ./opendkim
  58. container_name: mx-opendkim
  59. networks:
  60. mx.internal.docker:
  61. aliases:
  62. - opendkim.mx.internal.docker
  63. volumes:
  64. - ./data/opendkim/keys:/etc/opendkim/keys
  65. env_file:
  66. - env
  67. networks:
  68. mx.internal.docker: