2
0

docker-compose.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. - /home/httpd:/home/httpd
  37. - /home/httpd:/home/net211
  38. entrypoint: ['/bin/bash','/root/proxy.sh']
  39. restart: unless-stopped
  40. nginx:
  41. image: nginx
  42. depends_on:
  43. - postfix
  44. build:
  45. context: nginx
  46. dockerfile: Dockerfile
  47. environment:
  48. TZ: Europe/Rome
  49. ports:
  50. - 10080:80
  51. - 10443:443
  52. volumes:
  53. - /home/httpd:/home/httpd
  54. entrypoint: ['/bin/bash','/root/nginx.sh']
  55. restart: unless-stopped
  56. php:
  57. image: php
  58. depends_on:
  59. - nginx
  60. build:
  61. context: php
  62. dockerfile: Dockerfile
  63. args:
  64. PHP_VERSION: 8.3
  65. environment:
  66. TZ: Europe/Rome
  67. ports:
  68. - 9000:9000
  69. volumes:
  70. - /home/httpd:/home/httpd
  71. entrypoint: ['/bin/bash','/root/run.sh']
  72. restart: unless-stopped
  73. cron:
  74. image: cron
  75. build:
  76. context: php
  77. dockerfile: Dockerfile
  78. args:
  79. PHP_VERSION: 8.3
  80. depends_on:
  81. - php
  82. environment:
  83. TZ: Europe/Rome
  84. volumes:
  85. - /home/httpd:/home/httpd
  86. entrypoint: ["/bin/bash"]