docker-compose.yml 1.6 KB

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