Database is resetting? #3753
-
Hi! I'm hosting my Novu deployment on a Digitalocean droplet without decoupling the database. Will this be solved if I decouple the database and host it in a managed database in Digitalocean? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
hello @hilmia Do you use docker-compose from Trying to answer the question - I think yes, decoupling database should solve the problem. But database shouldn't reset, I think there is persistence problem with droplet or docker. Novu deployment docker compose uses named volumes to persist data, What are the circumstances when the database resets? It happens when you reset droplet or "by itself"? |
Beta Was this translation helpful? Give feedback.
-
@hilmia You can inspect volume (it always should be named If "CreatedAt" will be same, then something is wrong with Docker or our $ docker volume ls
local foobar
local xyz
local deployment_mongodb
...
$ docker volume inspect deployment_mongodb
[
{
"CreatedAt": "2023-07-10T10:05:02+02:00",
"Driver": "local",
"Labels": {
"com.docker.compose.project": "deployment",
"com.docker.compose.version": "2.17.3",
"com.docker.compose.volume": "mongodb"
},
"Mountpoint": "/var/lib/docker/volumes/deployment_mongodb/_data",
"Name": "deployment_mongodb",
"Options": null,
"Scope": "local"
}
]
|
Beta Was this translation helpful? Give feedback.
-
Thank you. I created a separate managed db in Digitalocean and connected Novu, and all is good now. |
Beta Was this translation helpful? Give feedback.
hello @hilmia
Do you use docker-compose from
deployment
folder, right? Becausedevelopment
compose has volume for mongo set intmp
folder, where data can be dropped when server is restarted.Trying to answer the question - I think yes, decoupling database should solve the problem. But database shouldn't reset, I think there is persistence problem with droplet or docker. Novu deployment docker compose uses named volumes to persist data,
What are the circumstances when the database resets? It happens when you reset droplet or "by itself"?