mirror of
https://github.com/Dokploy/examples
synced 2025-06-26 18:15:52 +00:00
.. | ||
drizzle | ||
public | ||
src | ||
.env.example | ||
.eslintrc.cjs | ||
.gitignore | ||
drizzle.config.ts | ||
next.config.js | ||
package.json | ||
pnpm-lock.yaml | ||
postcss.config.cjs | ||
prettier.config.js | ||
README.md | ||
start-database.sh | ||
tailwind.config.ts | ||
tsconfig.json |
T3 App Example
This repository contains an example of T3 application with mysql database that is deployed on Dokploy.
-
Use Git Provider in Your Application:
- Repository:
https://github.com/Dokploy/examples.git
- Branch:
main
- Build path:
/t3
- Repository:
-
Create a MySQL Database:
- Enter to the database and copy the Internal Connection URL.
-
Add Environment Variables to your Application:
- Navigate to the "Environments" tab and add the following variable:
DATABASE_URL="the-database-url-you-copied-from-the-previous-step"
-
Click on Deploy:
- Deploy your application by clicking the deploy button.
-
Generate a Domain:
- Click on generate domain button.
- A new domain will be generated for you.
- You can use this domain to access your application.
If you need further assistance, join our Discord server.