mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-16 03:05:49 +00:00
Refactor Docker setup and add Prisma Studio service
- Introduced a new prisma-studio service in compose.yml for easier database management. - Added a PostgreSQL database service with environment variables for user and database setup. - Removed the outdated node service configuration from .build/dev/compose.yml. - Simplified the node Dockerfile by removing unnecessary shell configuration. - Created a new prisma.Dockerfile for running Prisma Studio. These changes enhance the development environment and streamline database interactions.
This commit is contained in:
@ -1,7 +0,0 @@
|
||||
services:
|
||||
node:
|
||||
build:
|
||||
context: ../../
|
||||
dockerfile: .build/dev/node.Dockerfile
|
||||
hostname: sarlink-portal
|
||||
image: git.shihaam.dev/sarlink/sarlink-portal
|
@ -1,7 +1,5 @@
|
||||
FROM node:18
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
CMD npm run dev
|
||||
|
5
.build/dev/prisma.Dockerfile
Normal file
5
.build/dev/prisma.Dockerfile
Normal file
@ -0,0 +1,5 @@
|
||||
FROM node:18
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
CMD npx prisma studio
|
Reference in New Issue
Block a user