I moved the car game from Vercel to Dokploy
Vercel is great, simple and all that, but I have a VPS so why not use it.
Johan
2026 | 1 | 7
A little holiday fun. The car game, that I did not touch for 8 months or something like got a little love. It was using supabase as db. It was an okay setup i guess, I used the auth and put the track-editor behind it. But it felt a little too much and too complicated for my needs. So i decided to move this project to my VPS where i recently installed Dokploy, but with no fun projects atm but i really wanted to test it a bit more.
So for dokploy i wanted a postgres db in a docker compose and a Dockerfile for the app. Since I wanted to use Basic auth for the dev deployment on the svelte app where the game runs. I havent figured out if its possible to do so when deploying from docker compose.
So deploying app from Dockerfile, postgres form docker compose did work fine, but for the app to be able to connect with the db I figured out that Dockerfile apps by default is on a "dokploy-network" but that was not the case with the postgres, so had to add this to the service:
networks:
dokploy-network:
aliases:
- db-devBut other than that it felt quite straight forward.
Next step is to add a redis cache.. Maybe next christmas!
Loading posts...