# Migrate to docker

**URL:** https://community.zammad.org/t/migrate-to-docker/6558
**Category:** Technical assistance
**Created:** [April 4, 2021, 7:24pm UTC](https://community.zammad.org/t/migrate-to-docker/6558 "2021-04-04T19:24:12Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![cptpirx](https://community.zammad.org/letter_avatar_proxy/v4/letter/c/90db22/32.png) [@cptpirx](https://community.zammad.org/u/cptpirx)
#### Post date: [April 4, 2021, 7:24pm UTC](https://community.zammad.org/t/migrate-to-docker/6558/1 "2021-04-04T19:24:12Z")

</div>

### Infos:

- Used Zammad version: 4
- Used Zammad installation source: docker
- Operating system: ubuntu 20.04
- Browser + version: Chrome

How can I migrate my installed zammad (from package: 4.0, pgsql 12.6) to docker-compose?  
The latest docker-compose image contains 9.6.20 postgresql.

I tried:

- restore from zammad\_backup.sh
- restore database from manually created backup but seems can not restore from newer database

Thanks,  
Pirx

---

<div class="post-metadata">

### Author: ![olafbuitelaar](https://community.zammad.org/user_avatar/community.zammad.org/olafbuitelaar/32/4769_2.png) [@olafbuitelaar](https://community.zammad.org/u/olafbuitelaar)
#### Post date: [April 4, 2021, 7:29pm UTC](https://community.zammad.org/t/migrate-to-docker/6558/2 "2021-04-04T19:29:35Z")

</div>

maybe first try to restore with the original version, and once successfully restored, then upgrade to the pgsql container to the version you want.  
I’m running with the postgres:13-alpine tag, and seems to run fine.  
Also make sure you upgrade the zammad-backup container, since the pg\_dump’s aren’t compatible.

---

<div class="post-metadata">

### Author: ![cptpirx](https://community.zammad.org/letter_avatar_proxy/v4/letter/c/90db22/32.png) [@cptpirx](https://community.zammad.org/u/cptpirx)
#### Post date: [April 4, 2021, 7:43pm UTC](https://community.zammad.org/t/migrate-to-docker/6558/3 "2021-04-04T19:43:59Z")

</div>

thanks, how can I integrate the newer postgres into my docker compose which contains:  
image: ${IMAGE\_REPO}:zammad-postgresql${VERSION}

---

<div class="post-metadata">

### Author: ![olafbuitelaar](https://community.zammad.org/user_avatar/community.zammad.org/olafbuitelaar/32/4769_2.png) [@olafbuitelaar](https://community.zammad.org/u/olafbuitelaar)
#### Post date: [April 4, 2021, 7:51pm UTC](https://community.zammad.org/t/migrate-to-docker/6558/4 "2021-04-04T19:51:21Z")

</div>

just replace the line to your likings?

---

<div class="post-metadata">

### Author: ![cptpirx](https://community.zammad.org/letter_avatar_proxy/v4/letter/c/90db22/32.png) [@cptpirx](https://community.zammad.org/u/cptpirx)
#### Post date: [April 4, 2021, 7:54pm UTC](https://community.zammad.org/t/migrate-to-docker/6558/5 "2021-04-04T19:54:34Z")

</div>

tomorrow I will try it 🙂 thanks again!

---

<div class="post-metadata">

### Author: ![cptpirx](https://community.zammad.org/letter_avatar_proxy/v4/letter/c/90db22/32.png) [@cptpirx](https://community.zammad.org/u/cptpirx)
#### Post date: [April 5, 2021, 8:52pm UTC](https://community.zammad.org/t/migrate-to-docker/6558/7 "2021-04-05T20:52:38Z")

</div>

finally I built a new image from containers/zammad-postgresql/Dockerfile, it seems working properly with postgresql 12.6

---

<div class="post-metadata">

### Author: ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)
#### Post date: [August 3, 2021, 8:53pm UTC](https://community.zammad.org/t/migrate-to-docker/6558/8 "2021-08-03T20:53:07Z")

</div>

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
