2022-12-06 18:13:23 +01:00
# TAU's MISP Docker images
2020-01-29 15:30:26 +01:00
2023-01-20 12:48:26 +01:00
[![Build Status ](https://img.shields.io/github/actions/workflow/status/ostefano/docker-misp/release-latest.yml )](https://hub.docker.com/repository/docker/ostefano/misp-docker)
2020-02-27 15:49:29 +01:00
[![Gitter chat ](https://badges.gitter.im/gitterHQ/gitter.png )](https://gitter.im/MISP/Docker)
2020-01-29 15:30:26 +01:00
2022-12-06 18:13:23 +01:00
A production ready Dockered MISP based on CoolAcid's MISP Docker image (https://github.com/coolacid/docker-misp).
2019-11-25 23:02:49 +01:00
2022-12-06 18:13:23 +01:00
Like CoolAcid's MISP docker image, this is based on some of the work from the DSCO docker build, nearly all of the details have been rewritten.
2019-11-26 01:23:59 +01:00
2020-02-12 15:18:32 +01:00
- Components are split out where possible, currently this is only the MISP modules
- Over writable configuration files
- Allows volumes for file store
- Cron job runs updates, pushes, and pulls - Logs go to docker logs
- Docker-Compose uses off the shelf images for Redis and MySQL
- Images directly from docker hub, no build required
- Slimmed down images by using build stages and slim parent image, removes unnecessary files from images
2020-01-28 23:42:10 +01:00
2022-12-06 18:13:23 +01:00
Additionally, this fork features the following improvements:
2020-01-28 23:42:10 +01:00
2022-12-07 09:52:49 +01:00
- ARM (M1) support: move mariadb for increase compatibility
- ARM (M1) support: move to updated and cross-platform mail exim4 image
2022-12-06 18:13:23 +01:00
- Fix and improve support for cron jobs
2022-12-07 09:52:49 +01:00
- Fix and improve support for syncservers
- Fix supervisord process control (processes are correctly terminated upon reload)
- Fix schema update by making it completely offline (no user interaction required)
- Fix enforcement of permissions
- Fix MISP modules loading of faup library
- Fix MISP modules loading of gl library
- Add support for new background job system (see https://github.com/MISP/MISP/blob/2.4/docs/background-jobs-migration-guide.md)
- Add support for building specific MISP and MISP-modules commits
2023-04-13 16:02:02 +02:00
- Add automatic configuration of sync servers (see `configure_misp.sh` )
- Add autoamtic configuration of authentication keys (see `configure_misp.sh` )
2022-12-07 09:52:49 +01:00
- Add direct push of docker images to Docker Hub
- Consolidate docker compose files
2020-01-29 16:26:54 +01:00
2022-12-06 18:13:23 +01:00
As a result, this image is not for everybody and does not (and will not) fit every use case.
Nevertheless the underlying spirit of this fork is to allow "repeatable deployments", and all pull requests in this direction will be merged.
2020-02-12 15:18:32 +01:00
## Getting Started
2023-11-03 10:57:58 +01:00
- Copy the `template.env` to `.env`
- Customize `.env` based on your needs (optional step)
2022-09-03 13:59:35 +02:00
2023-11-03 10:57:58 +01:00
### Run
2020-02-12 15:18:32 +01:00
2023-11-03 10:57:58 +01:00
- `docker-compose pull` if you want to use pre-built images or `docker-compose build` if you want to build your own
2020-02-12 15:18:32 +01:00
- `docker-compose up`
- Login to `https://localhost`
2020-02-12 15:23:47 +01:00
- User: `admin@admin.test`
- Password: `admin`
2020-02-12 15:27:48 +01:00
2023-11-03 10:57:58 +01:00
### Configuration
2020-02-19 17:03:39 +01:00
2023-11-03 10:57:58 +01:00
The `docker-compose.yml` file allows further configuration settings:
```
"MYSQL_HOST=db"
"MYSQL_USER=misp"
"MYSQL_PASSWORD=example" # NOTE: This should be AlphaNum with no Special Chars. Otherwise, edit config files after first run.
"MYSQL_DATABASE=misp"
"MISP_MODULES_FQDN=http://misp-modules" # Set the MISP Modules FQDN, used for Enrichment_services_url/Import_services_url/Export_services_url
"WORKERS=1" # Legacy variable controlling the number of parallel workers (use variables below instead)
"NUM_WORKERS_DEFAULT=5" # To set the number of default workers
"NUM_WORKERS_PRIO=5" # To set the number of prio workers
"NUM_WORKERS_EMAIL=5" # To set the number of email workers
"NUM_WORKERS_UPDATE=1" # To set the number of update workers
"NUM_WORKERS_CACHE=5" # To set the number of cache workers
```
2020-02-28 01:53:47 +01:00
2023-11-03 10:57:58 +01:00
New options are added on a regular basis.
2020-02-19 17:03:39 +01:00
2020-03-01 19:37:23 +01:00
### Updating
2022-12-07 09:52:49 +01:00
Updating the images should be as simple as `docker-compose pull` which, unless changed in the `docker-compose.yml` file, will pull the latest built images.
2020-03-01 19:37:23 +01:00
2020-02-12 15:18:32 +01:00
### Production
2020-03-01 19:37:23 +01:00
2023-11-03 10:57:58 +01:00
- It is recommended to specify which build you want to be running, and modify that version number when you would like to upgrade
2020-02-12 15:18:32 +01:00
- Use docker-compose, or some other config management tool
2020-02-25 03:09:08 +01:00
- Directory volume mount SSL Certs `./ssl` : `/etc/ssl/certs`
2020-02-24 18:11:32 +01:00
- Certificate File: `cert.pem`
- Certificate Key File: `key.pem`
2021-04-07 16:46:59 +02:00
- CA File for Cert Authentication (optional) `ca.pem`
2020-02-12 15:18:32 +01:00
- Additional directory volume mounts:
2023-05-09 16:11:07 +02:00
- `./configs` : `/var/www/MISP/app/Config/`
- `./logs` : `/var/www/MISP/app/tmp/logs/`
- `./files` : `/var/www/MISP/app/files/`
- `./gnupg` : `/var/www/MISP/.gnupg/`
- If you need to automatically run additional steps each time the container starts, create a new file `files/customize_misp.sh` , and replace the variable `${CUSTOM_PATH}` inside `docker-compose.yml` with its parent path.
2020-02-12 15:18:32 +01:00
2023-11-03 10:57:58 +01:00
## Versioning
2020-11-04 00:50:11 +01:00
2023-11-03 10:57:58 +01:00
GitHub builds the images automatically and pushes them to [Docker hub ](https://hub.docker.com/r/ostefano/misp-docker ). We do not use tags and versioning works as follows:
- MISP (and modules) version specified inside the `template.env` file
- Docker images are tagged based on the commit hash
- Core and modules are tagged as core-commit-sha1[0:7] and modules-commit-sha1[0:7] respectively
- The latest images have additional tags core-latest and modules-latest
2020-11-04 00:50:11 +01:00
2020-02-12 15:18:32 +01:00
## Image file sizes
2023-09-17 13:37:02 +02:00
- Core server: 260MB
- Modules: 470MB