> ## Documentation Index
> Fetch the complete documentation index at: https://docs.postiz.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Migration to Temporal

> A guide to migrating to the new Temporal infrastructure

## Prerequisites

* Have your existing data saved somewhere (or use the existing PostgreSQL DB)
* Cloned the [new docker-compose repo](https://github.com/gitroomhq/postiz-docker-compose)

## Migration Steps

**1. Head into the docker-compose folder**

```bash theme={null}
cd ./postiz-docker-compose
```

**2. Insert your previous secrets into the new Docker Compose**

```bash theme={null}
nano docker-compose.yaml
```

And insert all your previous secrets from the existing docker-compose.yml before v1.12.0

**3. Start the stack, and stop it**

```bash theme={null}
docker compose up -d
```

Wait for a bit to let it start.

```bash theme={null}
docker compose down
```

**4. Insert your existing data into PostgreSQL**

1. Identify volumes:

```bash theme={null}
docker volume ls
```

2. Copy data (helper container):

```bash theme={null}
docker run --rm -v <old_postgres_volume>:/from -v <new_postgres_volume>:/to \
    alpine sh -c "cp -a /from/. /to/"
```

**5. Start the stack finally**

```bash theme={null}
docker compose up -d
```

And wait for it to start

**Congratulations! You have now successfully migrated to v2.12.0 or later, and can enjoy the new Temporal infrastructure and updates!**


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.