MISP Handbook
繁中

Install MISP with Docker Compose

Start a pinned MISP 2.5.53 lab, generate credentials, verify five services, and keep storage and networking under control.

About 3 minLab MISP 2.5.53
In this chapter
After this chapter, you can

Start a loopback-only Compose environment and verify that all five services are healthy.

Prepare a repeatable local lab

This lab pins MISP core and nginx to 2.5.53, and misp-modules to 3.1.6. Make sure Docker and Compose are installed and the daemon is running. Use a terminal with Python 3 and enough free disk for images and named volumes.

The published port binds to the loopback interface. Keep the environment local and use the supplied fictional data. Lab Compose configuration · Official Docker project.

Clone the repository and initialize the environment

Host terminal
git clone https://github.com/stwater20/MISP-tutorial.git
cd MISP-tutorial
python3 lab/init-env.py
cd lab

The initialization script writes lab/.env with local credentials and an encryption key. It leaves an existing file in place. Keep a protected copy once the lab has data, and avoid sharing the file or printing its contents during a demonstration.

Check the Compose configuration

From the lab directory
docker compose config --quiet
docker compose config --services

The first command should exit successfully. The service list should contain db, redis, misp-modules, misp-core, and misp-nginx. Use --quiet when checking the configuration in a shared terminal to avoid printing expanded values.

Pull images and wait for readiness

Start the five services
docker compose pull
docker compose up -d --wait --wait-timeout 900
docker compose ps

Check that all five services report healthy and that nginx publishes 127.0.0.1:18081. Open http://localhost:18081 to reach the login page. Allow extra time on the first run for database setup.

If a service remains unhealthy
docker compose ps
docker compose logs --tail 80 misp-core
docker compose logs --tail 40 db

Start with the earliest failed dependency. See the container troubleshooting checklist and the recorded healthy state.

Verify what persists and what is reachable

Check bindings and named volumes
docker compose ps
docker volume ls --filter label=com.docker.compose.project=sectools-misp-lab

Clients on the host use http://localhost:18081. Services inside Compose address nginx as http://misp-nginx:8080. The database, cache, and modules use the Compose network rather than published host ports.

Named volumes hold state such as the database, application configuration, uploads, and GPG material. Removing containers and removing volumes are separate operations. Review the backup scope before recreating anything.

Stop and resume the lab

From the lab directory
docker compose stop
# To resume:
docker compose up -d --wait --wait-timeout 900

stop leaves containers and named volumes available for your next session. A plain down removes containers and the project network. Reserve a volume purge for deliberately resetting a disposable lab.

Verify your first login · Compose startup order · Docker volumes

Search the handbook