Deploy on Vercel
Ship DS-CS to Vercel in three steps — install, push to GitHub, deploy.
Three steps. Vercel runs the prebuilt dastyaresocial/ds-cs image as a Docker container — Postgres, S3 and secrets stay external.
Step 1 — Run the one-command install
On your machine or a server, run:
curl -fsSL https://raw.githubusercontent.com/dastyare-social/DS-CS/main/scripts/install.sh | bashThis creates a ready folder with docker-compose.yml, .env (generated secrets), config/, public/ and Dockerfile.vercel.
Do not delete
Dockerfile.vercel— it is important. Vercel uses it to run the prebuilt image. Without it Vercel tries a normal framework build and the deploy fails.
Step 2 — Put the folder in your GitHub repo
Push everything from that folder (except .env — never commit secrets) into your GitHub repository, keeping Dockerfile.vercel at the repo root.
Step 3 — Deploy on Vercel and set the env variables
- Import the repo in Vercel (or run
vercel --prodfrom the folder). - Open the project → Settings → Environment Variables, and define every variable from your
.envthere (Production). What each one means: Environment variables. SetBETTER_AUTH_URLandNEXT_PUBLIC_APP_URLto your Vercel domain, andDATABASE_URLto a managed Postgres with TLS. - Deploy. Open the URL and sign in with your admin credentials.
Verify: / loads, /os login works, an image post uploads to your S3 bucket, /docs renders.
One note:
NEXT_PUBLIC_*values are baked into the Docker image at build time, so changing one later means rebuilding and re-pushing the image — everything else takes effect on redeploy.
Support: hey@dastyare.social.
Loading repository…