mirror of
https://github.com/labring/FastGPT.git
synced 2026-04-26 02:07:28 +08:00
87b0bca30c
* cloud doc * doc refactor * doc move * seo * remove doc * yml * doc * fix: tsconfig * fix: tsconfig
21 lines
430 B
Plaintext
21 lines
430 B
Plaintext
---
|
|
title: Docker Database Migration (Simple Method)
|
|
description: FastGPT Docker database backup and migration
|
|
---
|
|
|
|
## 1. Stop Services
|
|
|
|
```bash
|
|
docker-compose down
|
|
```
|
|
|
|
|
|
## 2. Copy Directories
|
|
|
|
Docker-deployed databases mount local directories into containers via volumes. To migrate, simply copy these directories.
|
|
|
|
`PG data`: pg/data
|
|
`Mongo data`: mongo/data
|
|
|
|
Just copy the entire pg and mongo directories to the new location.
|