misp-docker/README.md

49 lines
1.8 KiB
Markdown
Raw Normal View History

2018-06-20 09:20:39 +02:00
MISP Docker
===========
[![](https://travis-ci.org/MISP/misp-docker.svg?branch=master)](https://travis-ci.org/yaleman/misp-docker)
2018-06-20 09:20:39 +02:00
The files in this repository are used to create a Docker container running a [MISP](http://www.misp-project.org) ("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.
2018-06-20 09:20:39 +02:00
2021-03-09 23:07:16 +01:00
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.
2018-06-20 09:20:39 +02:00
2021-03-09 23:07:16 +01:00
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:
2018-06-20 09:20:39 +02:00
* 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
2021-03-09 23:07:16 +01:00
* Installation of misp modules
2018-06-22 19:52:20 +02:00
2018-06-20 13:05:21 +02:00
# Building your image
2018-06-20 09:20:39 +02:00
2018-06-20 13:05:21 +02:00
## Fetch files
2018-06-20 09:20:39 +02:00
```
$ git clone https://github.com/MISP/misp-docker
$ cd misp-docker
2019-08-21 17:39:53 +02:00
# Copy template.env to .env (on the root directory) and edit the environment variables at .env file
$ cp template.env .env
$ vi .env
2018-06-20 09:20:39 +02:00
```
2018-06-20 13:05:21 +02:00
## Build the containers
2018-06-20 09:20:39 +02:00
```
$ docker-compose build
or
2021-03-09 23:07:16 +01:00
$ docker-compose -f docker-compose.yml build
```
## Run containers
```
$ docker-compose up
or
2021-03-09 23:07:16 +01:00
$ docker-compose -f docker-compose.yml up
2020-12-04 18:13:45 +01:00
```