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
git clone https://github.com/stwater20/MISP-tutorial.git
cd MISP-tutorial
python3 lab/init-env.py
cd labThe 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
docker compose config --quiet
docker compose config --servicesThe 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
docker compose pull
docker compose up -d --wait --wait-timeout 900
docker compose psCheck 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.
docker compose ps
docker compose logs --tail 80 misp-core
docker compose logs --tail 40 dbStart with the earliest failed dependency. See the container troubleshooting checklist and the recorded healthy state.
Verify what persists and what is reachable
docker compose ps
docker volume ls --filter label=com.docker.compose.project=sectools-misp-labClients 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
docker compose stop
# To resume:
docker compose up -d --wait --wait-timeout 900stop 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
Your reading progress is saved in this browser.
This browser blocked storage. Reloading may clear this session’s progress.