forked from dfir-iris/iris-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
138 lines (130 loc) · 3.78 KB
/
docker-compose.dev.yml
File metadata and controls
138 lines (130 loc) · 3.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# IRIS Source Code
# contact@dfir-iris.org
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 3 of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
services:
rabbitmq:
extends:
file: docker-compose.base.yml
service: rabbitmq
user: rabbitmq
healthcheck:
test: rabbitmq-diagnostics check_port_connectivity || exit 1
start_period: 60s
start_interval: 1s
db:
extends:
file: docker-compose.base.yml
service: db
build:
context: docker/db
image: iriswebapp_db:develop
ports:
- "127.0.0.1:5432:5432"
healthcheck:
test: pg_isready -U postgres -d iris_db || exit 1
start_period: 60s
start_interval: 1s
app:
extends:
file: docker-compose.base.yml
service: app
build:
context: .
dockerfile: docker/webApp/Dockerfile
image: iriswebapp_app:develop
ports:
- "8000:8000"
volumes:
- ./source/app:/iriswebapp/app
- ./ui/dist:/iriswebapp/static
depends_on:
db:
condition: service_healthy
rabbitmq:
condition: service_healthy
healthcheck:
test: curl --head --fail http://localhost:8000 || exit 1
start_period: 60s
start_interval: 1s
worker:
extends:
file: docker-compose.base.yml
service: worker
build:
context: .
dockerfile: docker/webApp/Dockerfile
image: iriswebapp_app:develop
volumes:
- ./source/app:/iriswebapp/app
depends_on:
app:
condition: service_healthy
db:
condition: service_healthy
rabbitmq:
condition: service_healthy
healthcheck:
test: celery -A app.celery inspect ping || exit 1
start_period: 60s
start_interval: 1s
nginx:
extends:
file: docker-compose.base.yml
service: nginx
build:
context: ./docker/nginx
args:
NGINX_CONF_GID: 1234
NGINX_CONF_FILE: ${NGINX_CONF_FILE:-nginx.conf}
image: iriswebapp_nginx:develop
depends_on:
app:
condition: service_healthy
worker:
condition: service_healthy
frontend:
image: node:23-alpine
profiles: ["new-ui"]
container_name: iris_sveltekit_frontend
working_dir: /app
environment:
- IRIS_SVELTEKIT_FRONTEND_DIR=${IRIS_SVELTEKIT_FRONTEND_DIR:-../iris-frontend}
- PUBLIC_EXTERNAL_API_URL=${PUBLIC_EXTERNAL_API_URL:-https://127.0.0.1}
- PUBLIC_INTERNAL_API_URL=http://${IRIS_UPSTREAM_SERVER}:${IRIS_UPSTREAM_PORT}
- PUBLIC_USE_MOCK_API_DATA=false
- ORIGIN=https://127.0.0.1
- PROTOCOL_HEADER=x-forwarded-proto
- HOST_HEADER=x-forwarded-host
- NODE_ENV=development
volumes:
- ${IRIS_SVELTEKIT_FRONTEND_DIR:-../iris-frontend}:/app # Map the frontend directory dynamically
- /app/node_modules # Ensure `node_modules` is preserved inside the container
ports:
- "5173:5173"
command: sh -c "npm install && NODE_OPTIONS="--inspect" npm run dev -- --host"
networks:
- iris_backend
- iris_frontend
volumes:
iris-downloads:
user_templates:
server_data:
db_data:
networks:
iris_backend:
name: iris_backend
iris_frontend:
name: iris_frontend