# Make it easier to migrate from normal mongo to percona

**URL:** https://forums.percona.com/t/make-it-easier-to-migrate-from-normal-mongo-to-percona/14522
**Category:** Percona Operator for MongoDB
**Tags:** mongodb
**Created:** [February 22, 2022, 10:19am UTC](https://forums.percona.com/t/make-it-easier-to-migrate-from-normal-mongo-to-percona/14522 "2022-02-22T10:19:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![FloMaetschke](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@FloMaetschke](https://forums.percona.com/u/FloMaetschke)
#### Post date: [February 22, 2022, 10:19am UTC](https://forums.percona.com/t/make-it-easier-to-migrate-from-normal-mongo-to-percona/14522/1 "2022-02-22T10:19:42Z")

</div>

I want to migrate from normal mongo (on docker-compose) into kubernetes using percona mongo operator/servers.

But i am having trouble to initially create users/db. I could do this manually, like suggested in the docs / user section. But since i am using fluxcd i need to be automatic and only on creation.

my docker-compose.yaml had this volume binding:  
volumes:  
- ./init-mongo.sh:/docker-entrypoint-initdb.d/init-mongo.sh

Within the docker-entrypoint-initdb.d i placed a script which did everything for the initial creation/setuup. I really would like to reuse this script.

Could you please show a way how to do that, or e.g. show a way for initial setup.

---

<div class="post-metadata">

### Author: ![svetasmirnova](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/svetasmirnova/32/21_2.png) [@svetasmirnova](https://forums.percona.com/u/svetasmirnova)
#### Post date: [February 23, 2022, 12:22am UTC](https://forums.percona.com/t/make-it-easier-to-migrate-from-normal-mongo-to-percona/14522/2 "2022-02-23T00:22:08Z")

</div>

You may try sidecars for this purpose: [Using sidecar containers](https://www.percona.com/doc/kubernetes-operator-for-psmongodb/sidecar.html)
