Can I host docker isolated dev, test and production environement on the same VPS for a small project?

I have a VPS with 2gb of RAM on which I want to run a personal website based on Django CMS an some custom apps.

Since I use a cloud desktop it is not possible to install Linux, neither a VM, on my local machine.

I was wondering if this was possible to put the dev, test and prod environements directly on the VPS using Docker to separate it.

The main drawback may be the RAM but I can shutdown dev and test containers when not using it.

Another option would be to use a Python Django container that can run on both Windows and Linux without needing a VM.