2
0

docker-compose.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. services:
  2. start:
  3. image: start
  4. build:
  5. context: start
  6. dockerfile: start.yml
  7. postfix:
  8. image: postfix
  9. depends_on:
  10. - start
  11. build:
  12. context: postfix
  13. dockerfile: postfix.yml
  14. redis:
  15. image: redis
  16. depends_on:
  17. - postfix
  18. build:
  19. context: redis
  20. dockerfile: Dockerfile
  21. entrypoint: ['/bin/bash','/root/run.sh']
  22. restart: unless-stopped
  23. proxy:
  24. image: proxy
  25. depends_on:
  26. - postfix
  27. build:
  28. context: proxy
  29. dockerfile: Dockerfile
  30. environment:
  31. TZ: Europe/Rome
  32. ports:
  33. - 80:80
  34. - 443:443
  35. volumes:
  36. - httpd:/home/httpd
  37. - httpd:/home/net211
  38. #- /home/httpd:/home/httpd
  39. #- /home/httpd:/home/net211
  40. entrypoint: ['/bin/bash','/root/proxy.sh']
  41. restart: unless-stopped
  42. nginx:
  43. image: nginx
  44. depends_on:
  45. - postfix
  46. build:
  47. context: nginx
  48. dockerfile: Dockerfile
  49. environment:
  50. TZ: Europe/Rome
  51. ports:
  52. - 10080:80
  53. - 10443:443
  54. volumes:
  55. - httpd:/home/httpd
  56. #- /home/httpd:/home/httpd
  57. entrypoint: ['/bin/bash','/root/nginx.sh']
  58. restart: unless-stopped
  59. php:
  60. image: php
  61. depends_on:
  62. - nginx
  63. build:
  64. context: php
  65. dockerfile: Dockerfile
  66. args:
  67. PHP_VERSION: 8.4
  68. environment:
  69. TZ: Europe/Rome
  70. PHP_VERSION: 8.4
  71. ports:
  72. - 9000:9000
  73. volumes:
  74. - /home/httpd:/home/httpd
  75. entrypoint: ['/bin/bash','/root/run.sh']
  76. restart: unless-stopped
  77. cron:
  78. image: cron
  79. build:
  80. context: php
  81. dockerfile: Dockerfile
  82. args:
  83. PHP_VERSION: 8.4
  84. depends_on:
  85. - php
  86. environment:
  87. TZ: Europe/Rome
  88. volumes:
  89. - /home/httpd:/home/httpd
  90. entrypoint: ["/bin/bash"]
  91. volumes:
  92. httpd:
  93. driver: local
  94. driver_opts:
  95. type: nfs
  96. o: "addr=127.0.0.1,soft,rw,noexec,nosuid,nodev,async"
  97. device: ":/home/httpd"