Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

💾💿 Prisma Studio for Docker

License

NotificationsYou must be signed in to change notification settings

timothymiller/docker-prisma-studio

Repository files navigation

Access Prisma Studio securely through your web browser.

Share multiple database environments' access with colleagues. Deployed via Traefik for global access.

📊 Stats

SizeDownloadsDiscord
prisma-studio docker image sizeTotal DockerHub pullsOfficial Discord Server

⁉️ How Private & Secure?

  1. 🪨 Stable Debian-slim base image
  2. 🔒 100%Docker Bench Security compliant
  3. 👨‍💻 Open source for open audits
  4. 📈 Regular updates
  5. 0️ No extra dependencies

🖥️ Supported Architectures

ARM64, ARMv7, x86, x64, PPC

How it Works

A docker container with the latest LTS of NodeJS and the@prisma/cli module introspects your postgres database to auto-generate a prisma schema in the formschema.prisma.

Prisma Studio is then made available at the port specified to display your data source.

👨‍💻 Deploying

⚠️ Prerequisites

Traefik v2 network

Setting up an on-premise HTTPS reverse proxy requires knowledge ofTraefik v2.This is a great starting point.

For help setting up an on-premise or cloud-agnostic HTTPS reverse proxy for Kubernetes,email me orcontact me on Discord

📁 Environment Variables

⚠️ Warning

Make sure you securely generate new passwords for your postgres database for use with Prisma Studio.

  1. Create a file named.env

  2. Give.env the following contents:

PROJECT_NAME=demo-projectDOMAIN_NAME=domain.comPOSTGRES_DATABASE=developmentPOSTGRES_HOST=postgresPOSTGRES_PATH=/your/path/POSTGRES_USERNAME=postgresPOSTGRES_PASSWORD=postgresPOSTGRES_PORT=5432POSTGRES_DEFAULT_PORT=5432POSTGRES_IP_ADDRESS=192.168.254.20PRISMA_STUDIO_PORT=5555PRISMA_STUDIO_IP_ADDRESS=192.168.254.21NETWORK_NAME=traefik_proxy

You may have to change the port numbers forPostgres &Prisma Studio depending on the availability of your host machine.

☁️ Enterprise Deployments

For DevOps help setting up an on-premise or cloud-agnostic environment for software engineers,email me orcontact me on Discord

For example, before deploying this in a production environment, you will want to setup Traefik middleware for authentication to limit database access.

Create three.env configs

  1. development
  2. testing
  3. production

Each config should have it's own database name (development, testing, and production), port number, plus unique passwords for each environment. Securely store the Postgres database credentials for safe-keeping.

License

This Template is licensed under the GNU General Public License, version 3 (GPLv3).

Author

Timothy Miller

View my GitHub profile 💡

View my personal website 💻

About

💾💿 Prisma Studio for Docker

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp