Docker or ubuntu (virtual machine)?

Hello!
So far I have tried invoice ninja on Synology ds1621+ in docker, it is a test version. The program met my expectations (it is great!) and now I want to create a production version for many years.

I wonder what will be a better solution.

I can stay on docker or create a virtual machine with ubuntu and put invoice ninja there.

Which solution will be better, safer, easier to maintain and make copies?

Thank you in advance for your suggestions.

I apologize for my English :slight_smile:

Hi,

Either approach should be fine, I suggest using what you’re comfortable with.

If you want to copy the app you can use mysqldump to backup the database, you’ll also need a copy of the .env file.

1 Like

@hillel Thank you for your quick response.

At the moment it seems to me that the virtual machine is easier to make backups through snapshots.

1 Like

@Tomasz Personally, I prefer using an Ubuntu VM. I prefer it for two reasons. The first is it is very easy to take snapshots - as you point out. The second is I don’t get on very well with Docker. For some reason, I frequently have issues with Docker config files and the declarations in Docker commands don’t work with how my brain works.

Okay, I do have a third reason as well. I like being able to allocate specific amounts of ram/cpu to specific installs.

1 Like

hey @northill, thanks for your opinion!

1 Like