# How remember teams and webhooks across local Docker image restart?

**URL:** <https://forum.mattermost.com/t/how-remember-teams-and-webhooks-across-local-docker-image-restart/13018>\
**Category:** Troubleshooting\
**Created:** [February 27, 2022, 2:32am UTC](https://forum.mattermost.com/t/how-remember-teams-and-webhooks-across-local-docker-image-restart/13018 "2022-02-27T02:32:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KajMagnus3](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/kajmagnus3/32/5407_2.png) [@KajMagnus3](https://forum.mattermost.com/u/KajMagnus3)\
**Post date:** [February 27, 2022, 2:32am UTC](https://forum.mattermost.com/t/how-remember-teams-and-webhooks-across-local-docker-image-restart/13018/1 "2022-02-27T02:32:59Z")

</div>

Hi, I’m thinking about building a Mattermost integration. Then it’d be good to test against a real Mattermost instance. And the “Local Machine Setup using Docker” seems to be intended for this:

[https://docs.mattermost.com/install/setting-up-local-machine-using-docker.html](https://docs.mattermost.com/install/setting-up-local-machine-using-docker.html)

However apparently all settings and everything, is forgotten, whenever it gets restarted. Then I would need to create a new admin account, a new team, new access token, new webhook (for the integration), whenever I restarted the container.

Is there a way to remember teams and settings (incl personal access tokens and webhooks) across container restart? Even better, can this be configured in a text file, which I could mount in the Docker container? (I know there’s the file `/mm/mattermost/config/config.json` but it doesn’t seem to let me configure teams, access tokens, webhooks.)

(I found: [Make database persistent to survive docker restart?](https://forum.mattermost.com/t/make-database-persistent-to-survive-docker-restart/822) but it’s 6 years old and for Mattermost 2.2.)
