docker-compose.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. - start
  18. build:
  19. context: redis
  20. dockerfile: redis.yml
  21. entrypoint: ['/bin/bash','/root/run.sh']
  22. restart: unless-stopped
  23. apache2:
  24. image: apache2
  25. depends_on:
  26. - postfix
  27. build:
  28. context: apache2
  29. dockerfile: apache2.yml
  30. php83-net012:
  31. image: php83
  32. depends_on:
  33. - apache2
  34. build:
  35. context: php
  36. dockerfile: php.yml
  37. args:
  38. PHP_VERSION: 8.3
  39. environment:
  40. TZ: Europe/Rome
  41. ports:
  42. - 10089:80
  43. - 10449:443
  44. volumes:
  45. - net012:/home/httpd
  46. entrypoint: ['/bin/bash','/root/run.sh']
  47. restart: unless-stopped
  48. php83-net060:
  49. image: php83
  50. depends_on:
  51. - apache2
  52. build:
  53. context: php
  54. dockerfile: php.yml
  55. args:
  56. PHP_VERSION: 8.3
  57. environment:
  58. TZ: Europe/Rome
  59. ports:
  60. - 11089:80
  61. - 11449:443
  62. volumes:
  63. - net060:/home/httpd
  64. entrypoint: ['/bin/bash','/root/run.sh']
  65. restart: unless-stopped
  66. volumes:
  67. net012:
  68. driver: local
  69. driver_opts:
  70. type: nfs
  71. o: "addr=10.132.0.12,soft,rw,noexec,nosuid,nodev"
  72. device: ":/home/httpd"
  73. net060:
  74. driver: local
  75. driver_opts:
  76. type: nfs
  77. o: "addr=10.132.0.60,soft,rw,noexec,nosuid,nodev"
  78. device: ":/home/httpd"