MISP Docker (XME edition)
Go to file
Luciano Righetti 3cd926ce5d
Merge pull request #142 from fukusuket/hotfix/build-error-on-m1-mac
#141 fix: Fixed an issue where compose build failed on M1 Mac.
2022-09-23 13:50:07 +02:00
web Merge pull request #142 from fukusuket/hotfix/build-error-on-m1-mac 2022-09-23 13:50:07 +02:00
.gitignore Add certs to .gitignore 2020-11-09 19:20:35 +02:00
.travis.yml Change travis-CI build config 2021-03-23 21:59:50 +01:00
README.md Update README.md 2021-03-09 23:07:16 +01:00
docker-compose.yml Remove wait-for-it from docker-compose.yml 2022-09-23 11:43:10 +01:00
template.env Fix MISP_BASEURL default value. 2022-03-01 22:00:50 +09:00


MISP Docker

The files in this repository are used to create a Docker container running a MISP ("Malware Information Sharing Platform") instance.

I rewrote the Docker file to split the components in multiple containers (which is more in the philosophy of Docker). Therefore there is no longer a Dockerfile in the root directory.

The MISP container needs at least a MySQL container to store the data. By default it listen to port 443 and port 80, which is redirected to 443.

The build is based on Ubuntu and will install all the required components, using the INSTALL script provided in the MISP repository.

Using the Install script has the advantage that we can rely on a tested installation routine which is maintained and kept up to date. The amount of custom work to be done in the Dockerfile and run.sh files is limited to the necessary to make MISP container compliant.

The following configuration steps are performed automatically:

  • Reconfiguration of the base URL in config.php
  • Generation of a new salt in config.php
  • Generation of a self-signed certificate
  • Optimization of the PHP environment (php.ini) to match the MISP recommended values
  • Creation of the MySQL database
  • Generation of the admin PGP key
  • Installation of misp modules

Building your image

Fetch files

$ git clone https://github.com/MISP/misp-docker
$ cd misp-docker
# Copy template.env to .env (on the root directory) and edit the environment variables at .env file
$ cp template.env .env
$ vi .env

Build the containers

$ docker-compose build
$ docker-compose -f docker-compose.yml build

Run containers

$ docker-compose up
$ docker-compose -f docker-compose.yml up