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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. version: '3.7'
  2. x-common: &common
  3. # restart: unless-stopped
  4. env_file:
  5. - env
  6. services:
  7. postgresql:
  8. <<: *common
  9. build: ./postgresql
  10. networks:
  11. main:
  12. aliases:
  13. - postgresql.main.internal.docker
  14. volumes:
  15. - ./data/postgresql/data:/var/lib/postgresql/data
  16. ports:
  17. - "127.0.0.1:34000:5432"
  18. postfixadmin:
  19. <<: *common
  20. build: ./postfixadmin
  21. networks:
  22. main:
  23. aliases:
  24. - postfixadmin.main.internal.docker
  25. ports:
  26. - "127.0.0.1:34001:80"
  27. postfix:
  28. <<: *common
  29. build: ./postfix
  30. networks:
  31. main:
  32. aliases:
  33. - mail1.example.com
  34. volumes:
  35. - ./data/common/certs:/etc/ssl/certs
  36. ports:
  37. - "0.0.0.0:25:25"
  38. - "0.0.0.0:465:465"
  39. - "0.0.0.0:587:587"
  40. dovecot:
  41. <<: *common
  42. build: ./dovecot
  43. networks:
  44. main:
  45. aliases:
  46. - dovecot.main.internal.docker
  47. volumes:
  48. - ./data/common/certs:/etc/ssl/certs
  49. - ./data/dovecot/email:/var/email
  50. ports:
  51. - "0.0.0.0:143:143"
  52. - "0.0.0.0:993:993"
  53. - "0.0.0.0:4190:4190"
  54. opendkim:
  55. <<: *common
  56. build: ./opendkim
  57. networks:
  58. main:
  59. aliases:
  60. - opendkim.main.internal.docker
  61. volumes:
  62. - ./data/opendkim/keys:/etc/opendkim/keys
  63. milter-sasl:
  64. <<: *common
  65. build: ./milter-sasl
  66. networks:
  67. main:
  68. aliases:
  69. - milter-sasl.main.internal.docker
  70. networks:
  71. main: