-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (34 loc) · 914 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (34 loc) · 914 Bytes
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
# docker compose for the rootkit detector
# runs the web app and some other stuff
# deploy with: docker compose up --build
services:
web:
build: .
container_name: krd-web
ports:
- "8000:8000"
volumes:
- ./db.sqlite3:/app/db.sqlite3
- ./dashboard:/app/dashboard
- ./scripts:/app/scripts
environment:
- DJANGO_SETTINGS_MODULE=security_hub.settings
- PYTHONUNBUFFERED=1
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/dashboard/login/"]
interval: 30s
timeout: 5s
retries: 3
# nginx reverse proxy for prod setup
nginx:
image: nginx:alpine
container_name: krd-nginx
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./dashboard/static:/usr/share/nginx/html/static:ro
depends_on:
- web
restart: unless-stopped