2019-11-25 22:58:18 +01:00
|
|
|
version: '3'
|
|
|
|
services:
|
2022-09-03 13:59:35 +02:00
|
|
|
# This is capable to relay via gmail, Amazon SES, or generic relays
|
|
|
|
# See: https://hub.docker.com/r/ixdotai/smtp
|
2020-02-12 17:01:14 +01:00
|
|
|
mail:
|
2022-09-03 13:59:35 +02:00
|
|
|
image: ixdotai/smtp
|
|
|
|
environment:
|
|
|
|
- "SMARTHOST_ADDRESS=${SMARTHOST_ADDRESS}"
|
|
|
|
- "SMARTHOST_PORT=${SMARTHOST_PORT}"
|
|
|
|
- "SMARTHOST_USER=${SMARTHOST_USER}"
|
|
|
|
- "SMARTHOST_PASSWORD=${SMARTHOST_PASSWORD}"
|
|
|
|
- "SMARTHOST_ALIASES=${SMARTHOST_ALIASES}"
|
2020-02-12 17:01:14 +01:00
|
|
|
|
2019-11-25 22:58:18 +01:00
|
|
|
redis:
|
|
|
|
image: redis:5.0.6
|
|
|
|
|
|
|
|
db:
|
2022-09-03 13:59:35 +02:00
|
|
|
# We use MariaDB because it supports ARM and has the expected collations
|
|
|
|
image: mariadb:10.8.2
|
2019-11-25 22:58:18 +01:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- "MYSQL_USER=misp"
|
|
|
|
- "MYSQL_PASSWORD=example"
|
|
|
|
- "MYSQL_ROOT_PASSWORD=password"
|
|
|
|
- "MYSQL_DATABASE=misp"
|
2020-03-21 17:34:09 +01:00
|
|
|
volumes:
|
|
|
|
- mysql_data:/var/lib/mysql
|
2020-12-11 17:10:36 +01:00
|
|
|
cap_add:
|
|
|
|
- SYS_NICE # CAP_SYS_NICE Prevent runaway mysql log
|
2019-11-25 22:58:18 +01:00
|
|
|
|
|
|
|
misp:
|
2022-11-15 22:49:39 +01:00
|
|
|
image: ostefano/misp-docker:core-latest
|
2022-12-06 18:13:23 +01:00
|
|
|
build:
|
|
|
|
context: server/.
|
|
|
|
args:
|
|
|
|
- MISP_TAG=${MISP_TAG}
|
|
|
|
- MISP_COMMIT=${MISP_COMMIT}
|
|
|
|
- PHP_VER=${PHP_VER}
|
2019-11-28 20:14:38 +01:00
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- db
|
2019-11-25 22:58:18 +01:00
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
|
|
|
volumes:
|
2022-12-06 18:13:23 +01:00
|
|
|
- "./configs/:/var/www/MISP/app/Config/"
|
|
|
|
- "./logs/:/var/www/MISP/app/tmp/logs/"
|
|
|
|
- "./files/:/var/www/MISP/app/files/"
|
|
|
|
- "./ssl/:/etc/nginx/certs/"
|
|
|
|
- "./gnupg/:/var/www/MISP/.gnupg/"
|
2023-05-09 16:11:07 +02:00
|
|
|
# customize by replacing ${CUSTOM_PATH} with a path containing 'files/customize_misp.sh'
|
|
|
|
# - "${CUSTOM_PATH}/:/custom/"
|
2019-11-25 22:58:18 +01:00
|
|
|
environment:
|
2023-05-15 13:13:25 +02:00
|
|
|
- "HOSTNAME=${HOSTNAME}"
|
|
|
|
- "CRON_USER_ID=${CRON_USER_ID}"
|
2023-05-09 16:11:07 +02:00
|
|
|
# standard settings
|
|
|
|
- "ADMIN_EMAIL=${ADMIN_EMAIL}"
|
2023-05-14 17:56:55 +02:00
|
|
|
- "ADMIN_PASSWORD=${ADMIN_PASSWORD}"
|
2023-05-09 16:11:07 +02:00
|
|
|
- "ADMIN_KEY=${ADMIN_KEY}"
|
|
|
|
- "ADMIN_ORG=${ADMIN_ORG}"
|
|
|
|
- "GPG_PASSPHRASE=${GPG_PASSPHRASE}"
|
2023-05-13 15:17:53 +02:00
|
|
|
# sync server settings (see https://www.misp-project.org/openapi/#tag/Servers for more options)
|
2022-12-06 18:13:23 +01:00
|
|
|
- "SYNCSERVERS=${SYNCSERVERS}"
|
2022-11-04 18:22:12 +01:00
|
|
|
- |
|
|
|
|
SYNCSERVERS_1_DATA=
|
|
|
|
{
|
2023-05-13 15:17:53 +02:00
|
|
|
"remote_org_uuid": "${SYNCSERVERS_1_UUID}",
|
|
|
|
"name": "${SYNCSERVERS_1_NAME}",
|
|
|
|
"authkey": "${SYNCSERVERS_1_KEY}",
|
2022-12-06 18:13:23 +01:00
|
|
|
"url": "${SYNCSERVERS_1_URL}",
|
2022-11-04 18:22:12 +01:00
|
|
|
"pull": true
|
|
|
|
}
|
2023-04-13 16:02:02 +02:00
|
|
|
|
2019-11-25 22:58:18 +01:00
|
|
|
misp-modules:
|
2022-11-15 22:49:39 +01:00
|
|
|
image: ostefano/misp-docker:modules-latest
|
2022-12-06 18:13:23 +01:00
|
|
|
build:
|
|
|
|
context: modules/.
|
|
|
|
args:
|
|
|
|
- MODULES_TAG=${MODULES_TAG}
|
|
|
|
- MODULES_COMMIT=${MODULES_COMMIT}
|
2019-11-28 20:14:38 +01:00
|
|
|
environment:
|
|
|
|
- "REDIS_BACKEND=redis"
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
|
2020-03-21 17:34:09 +01:00
|
|
|
volumes:
|
|
|
|
mysql_data:
|