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.

84 lines
1.7 KiB

5 years ago
5 years ago
5 years ago
5 years ago
  1. services:
  2. nginx:
  3. extends:
  4. file: docker-compose.base.yml
  5. service: nginx
  6. networks:
  7. default:
  8. aliases:
  9. - someproject.local.wpstudio.ru
  10. depends_on:
  11. - php74
  12. - php81
  13. php74:
  14. extends:
  15. file: docker-compose.base.yml
  16. service: php
  17. build:
  18. dockerfile: php74.Dockerfile
  19. php81:
  20. extends:
  21. file: docker-compose.base.yml
  22. service: php
  23. build:
  24. dockerfile: php81.Dockerfile
  25. php82:
  26. extends:
  27. file: docker-compose.base.yml
  28. service: php
  29. build:
  30. dockerfile: php82.Dockerfile
  31. volumes:
  32. workspace74:
  33. extends:
  34. file: docker-compose.base.yml
  35. service: workspace
  36. build:
  37. dockerfile: workspace74.Dockerfile
  38. workspace81:
  39. extends:
  40. file: docker-compose.base.yml
  41. service: workspace
  42. build:
  43. dockerfile: workspace81.Dockerfile
  44. workspace82:
  45. extends:
  46. file: docker-compose.base.yml
  47. service: workspace
  48. build:
  49. dockerfile: workspace82.Dockerfile
  50. db:
  51. extends:
  52. file: docker-compose.base.yml
  53. service: db
  54. pma:
  55. extends:
  56. file: docker-compose.base.yml
  57. service: pma
  58. ports:
  59. - "81:80"
  60. inbucket:
  61. extends:
  62. file: docker-compose.base.yml
  63. service: inbucket
  64. ports:
  65. - "82:9000"
  66. dnsmasq:
  67. restart: always
  68. build:
  69. context: ./dockerfiles/dnsmasq
  70. volumes:
  71. - ./config/dnsmasq/dnsmasq.conf:/etc/dnsmasq.conf
  72. cap_add:
  73. - NET_ADMIN # @see https://man7.org/linux/man-pages/man7/capabilities.7.html
  74. volumes:
  75. database:
  76. secrets:
  77. user_ssh_key:
  78. file: ~/.ssh/id_rsa
  79. user_known_hosts:
  80. file: ~/.ssh/known_hosts
  81. composer_auth:
  82. file: ~/.config/composer/auth.json