-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
99 lines (98 loc) · 3.06 KB
/
Copy pathdocker-compose-dev.yml
File metadata and controls
99 lines (98 loc) · 3.06 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
# SPDX-FileCopyrightText: 2023-2026 Jisc Services Limited
# SPDX-FileContributor: Joe Pitt
#
# SPDX-License-Identifier: GPL-3.0-only
name: misp
services:
clamav:
environment:
- FQDN=${FQDN:-misp.local}
- HTTPS_PORT=${HTTPS_PORT:-443}
hostname: ${CLAMAV_HOSTNAME:-misp_clamav}
image: clamav/clamav:1.0_base
restart: unless-stopped
volumes:
- ./persistent/${COMPOSE_PROJECT_NAME}/clamav_db/:/var/lib/clamav
db:
command: [mysqld, --default-authentication-plugin=mysql_native_password, --character-set-server=utf8mb4, --collation-server=utf8mb4_unicode_ci, --innodb_monitor_enable=all]
environment:
- FQDN=${FQDN:-misp.local}
- HTTPS_PORT=${HTTPS_PORT:-443}
- MYSQL_DATABASE=${MYSQL_DBNAME:-misp}
- MYSQL_USER=${MYSQL_USERNAME:-misp}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-misp}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-misp}
hostname: ${MYSQL_HOSTNAME:-misp_db}
image: mysql/mysql-server:8.0
restart: unless-stopped
volumes:
- ./persistent/${COMPOSE_PROJECT_NAME}/db:/var/lib/mysql
modules:
depends_on:
clamav:
condition: service_healthy
redis:
condition: service_healthy
environment:
- FQDN=${FQDN:-misp.local}
- HTTPS_PORT=${HTTPS_PORT:-443}
- REDIS_BACKEND=${REDIS_HOST:-misp_redis}
- REDIS_DATABASE=${REDIS_MODULES_DB:-1}
- REDIS_PW=${REDIS_PASSWORD:-misp}
hostname: ${MODULES_HOSTNAME:-misp_modules}
image: jisccti/misp-modules-dev:latest
restart: unless-stopped
volumes:
- modules_cache:/mnt/cache/
redis:
entrypoint: redis-server --loglevel warning --requirepass ${REDIS_PASSWORD:-misp}
environment:
- FQDN=${FQDN:-misp.local}
- HTTPS_PORT=${HTTPS_PORT:-443}
- REDISCLI_AUTH=${REDIS_PASSWORD:-misp}
healthcheck:
test: redis-cli -e ping || exit 1
hostname: ${REDIS_HOST:-misp_redis}
image: redis:8
restart: unless-stopped
web:
depends_on:
db:
condition: service_healthy
modules:
condition: service_healthy
redis:
condition: service_healthy
env_file:
- path: .env
required: false
- path: oidc.env
required: false
hostname: ${MISP_HOSTNAME:-misp_web}
image: jisccti/misp-web-dev:latest
ports:
- ${HTTP_PORT:-80}:80
- ${HTTPS_PORT:-443}:443
restart: unless-stopped
volumes:
- web_temp:/tmp
- ./persistent/${COMPOSE_PROJECT_NAME}/data/:/var/www/MISPData
- ./persistent/${COMPOSE_PROJECT_NAME}/gpg/:/var/www/MISPGnuPG
- ./persistent/${COMPOSE_PROJECT_NAME}/tls/:/etc/ssl/private
workers:
depends_on:
web:
condition: service_started
env_file:
- path: .env
required: false
hostname: ${WORKERS_HOSTNAME:-misp_workers}
image: jisccti/misp-workers-dev:latest
restart: unless-stopped
volumes:
- web_temp:/tmp/misp-web
- ./persistent/${COMPOSE_PROJECT_NAME}/data/:/var/www/MISPData
- ./persistent/${COMPOSE_PROJECT_NAME}/gpg/:/var/www/MISPGnuPG
volumes:
modules_cache:
web_temp: