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.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. version: '2'
  2. services:
  3. database:
  4. build: ./postgresql
  5. container_name: mx-postgresql
  6. networks:
  7. internal.docker:
  8. aliases:
  9. - postgresql.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. internal.docker:
  21. aliases:
  22. - postfixadmin.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. internal.docker:
  32. aliases:
  33. - postfix.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. internal.docker:
  44. aliases:
  45. - dovecot.internal.docker
  46. volumes:
  47. - ./data/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. networks:
  57. internal.docker: