Mockoon Pro stores all persistent application state (the SQLite database, settings, user accounts, license information, and synchronized mock environments) in a single /data directory inside the container.
Because the SQLite database runs in WAL (Write-Ahead Logging) mode, stop the container before copying files—or use a volume snapshot—to guarantee a consistent backup:
/data.Copydocker stop mockoon-pro docker run --rm \ -v mockoon-data:/data:ro \ -v "$(pwd)":/backup \ alpine tar -czf /backup/mockoon-data-backup.tar.gz -C /data . docker start mockoon-pro
/data).When a new version is released, back up your /data volume and update the container using the procedure matching your deployment method.
docker-compose.yml (e.g. mockoon/pro:9.10.0), update it to the target version. If you are tracking latest, leave it as is.Copydocker compose pull
Docker Compose stops the old container and starts the updated one with zero data loss.Copydocker compose up -d
Copydocker compose logs -f mockoon-pro
Copydocker image prune -f
Copydocker pull mockoon/pro:latest
Copydocker stop mockoon-pro docker rm mockoon-pro
Copydocker run -d \ --name mockoon-pro \ -p 5020:5020 \ -e NODE_ENV=production \ -e PORT=5020 \ -e MOCKOON_DOMAIN=mockoon.company.com \ -e MOCKOON_SERVER_ID=mockoon-node-1 \ -v mockoon-data:/data \ mockoon/pro:latest
If tracking latest with imagePullPolicy: Always, restart the deployment rollout to pull the new image:
Copykubectl rollout restart deployment/mockoon-pro
Or update the pinned version tag in your manifest / Helm values and apply:
Copykubectl apply -f deployment.yaml
When the updated container starts, any required SQLite database migrations and internal state upgrades are executed automatically. Check the migrations for each version to review version-specific changes.
When updating to a new major version, Mockoon Pro automatically migrates all synchronized environments in /data, persists the changes, and updates the team's compatible major version before accepting connections. Desktop clients must also be updated to the same major version to remain compatible, while the embedded web application is updated automatically with the server.