
Deploy Prisma on Your Own Server
Prisma 1 is a database abstraction layer that turns your databases into GraphQL APIs with CRUD operations and realtime capabilities
Want to deploy Prisma on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.
What is Prisma?
Prisma 1 - Database tools for modern application development. This setup runs Prisma 1 along with a MySQL Database.
Self-Host Prisma
Follow these steps to deploy on your own server.
Install Docker
Skip this step if Docker is already installed on your server.
curl -fsSL https://get.docker.com | sh
Configure
Customize the settings below. Defaults work for most cases.
General
Deploy
Copy the configuration and run it on your server.
services:
prisma:
image: prismagraphql/prisma:1.29
environment:
PRISMA_CONFIG: |
managementApiSecret:
port: 4466
databases:
default:
connector: mysql
host: prisma-db
port: 3306
user: root
password:
migrations: true
ports:
- 4466:4466
depends_on:
- prisma-db
prisma-db:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: ""
volumes:
- prisma-db-data:/var/lib/mysql
volumes:
prisma-db-data: {}
Then run:
docker compose up -d
Access
Once started, access your app at http://localhost:4466
Why Self-Host Prisma?
Full Data Ownership
Your data stays on your servers. No third-party access.
No Monthly Fees
Pay only for your server. No per-seat or usage charges.
Complete Control
Customize, backup, and scale on your own terms.
Privacy & Compliance
Meet GDPR, HIPAA, or internal security requirements.
Technical Details
Docker Image
prismagraphql/prisma:${prisma_version}Want to go faster?
Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.
Install on any Linux server:
sh -c "$(curl -sSL https://get.senate.sh)"