No Description

docker-compose.dev.yml 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. # IRIS Source Code
  2. # contact@dfir-iris.org
  3. #
  4. # This program is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU Lesser General Public
  6. # License as published by the Free Software Foundation; either
  7. # version 3 of the License, or (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. # Lesser General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU Lesser General Public License
  15. # along with this program; if not, write to the Free Software Foundation,
  16. # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17. services:
  18. rabbitmq:
  19. extends:
  20. file: docker-compose.base.yml
  21. service: rabbitmq
  22. db:
  23. extends:
  24. file: docker-compose.base.yml
  25. service: db
  26. build:
  27. context: docker/db
  28. image: iriswebapp_db:develop
  29. ports:
  30. - "127.0.0.1:5432:5432"
  31. app:
  32. extends:
  33. file: docker-compose.base.yml
  34. service: app
  35. build:
  36. context: .
  37. dockerfile: docker/webApp/Dockerfile
  38. image: iriswebapp_app:develop
  39. ports:
  40. - "8000:8000"
  41. volumes:
  42. - ./source/app:/iriswebapp/app
  43. - ./ui/dist:/iriswebapp/static
  44. - ./source/app/static/assets/js/iris/ict-clock.js:/iriswebapp/static/assets/js/iris/ict-clock.js:ro
  45. healthcheck:
  46. test: curl --head --fail http://localhost:8000 || exit 1
  47. start_period: 60s
  48. worker:
  49. extends:
  50. file: docker-compose.base.yml
  51. service: worker
  52. build:
  53. context: .
  54. dockerfile: docker/webApp/Dockerfile
  55. image: iriswebapp_app:develop
  56. volumes:
  57. - ./source/app:/iriswebapp/app
  58. nginx:
  59. extends:
  60. file: docker-compose.base.yml
  61. service: nginx
  62. build:
  63. context: ./docker/nginx
  64. args:
  65. NGINX_CONF_GID: 1234
  66. NGINX_CONF_FILE: ${NGINX_CONF_FILE:-nginx.conf}
  67. image: iriswebapp_nginx:develop
  68. frontend:
  69. image: node:22-alpine
  70. profiles: ["new-ui"]
  71. container_name: iris_sveltekit_frontend
  72. working_dir: /app
  73. environment:
  74. - IRIS_SVELTEKIT_FRONTEND_DIR=${IRIS_SVELTEKIT_FRONTEND_DIR:-../iris-frontend}
  75. - PUBLIC_EXTERNAL_API_URL=${PUBLIC_EXTERNAL_API_URL:-https://127.0.0.1}
  76. - PUBLIC_INTERNAL_API_URL=http://${IRIS_UPSTREAM_SERVER}:${IRIS_UPSTREAM_PORT}
  77. - PUBLIC_USE_MOCK_API_DATA=false
  78. - ORIGIN=https://127.0.0.1
  79. - PROTOCOL_HEADER=x-forwarded-proto
  80. - HOST_HEADER=x-forwarded-host
  81. - NODE_ENV=development
  82. volumes:
  83. - ${IRIS_SVELTEKIT_FRONTEND_DIR:-../iris-frontend}:/app # Map the frontend directory dynamically
  84. - /app/node_modules # Ensure `node_modules` is preserved inside the container
  85. ports:
  86. - "5173:5173"
  87. command: sh -c "npm install && npm run dev -- --host"
  88. networks:
  89. - iris_backend
  90. - iris_frontend
  91. volumes:
  92. iris-downloads:
  93. user_templates:
  94. server_data:
  95. db_data:
  96. networks:
  97. iris_backend:
  98. name: iris_backend
  99. iris_frontend:
  100. name: iris_frontend