Dastyare SocialDastyare Social — Docs

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 | bash

This 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

  1. Import the repo in Vercel (or run vercel --prod from the folder).
  2. Open the project → Settings → Environment Variables, and define every variable from your .env there (Production). What each one means: Environment variables. Set BETTER_AUTH_URL and NEXT_PUBLIC_APP_URL to your Vercel domain, and DATABASE_URL to a managed Postgres with TLS.
  3. 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…

On this page