I run my Magicmirror software on a headless Openmediavault server. I use Portainer to manage my docker containers. This is what I had to do to get Google photos working (not sure if it’s the best way, I know it worked for me):
Run a new container for vnc-webclient, then open it.
Installed Firefox and nodejs in that container.
Open a shell in the vnc container, and run the generate_token_v2 command.
Firefox should open so you can log in and have your token created.
Good luck!