mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-02-20 19:22:01 +00:00
- 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.
33 lines
686 B
YAML
33 lines
686 B
YAML
services:
|
|
node:
|
|
build:
|
|
context: .build/dev
|
|
dockerfile: node.Dockerfile
|
|
hostname: sarlink-portal-dev
|
|
volumes:
|
|
- ./:/var/www/html/
|
|
ports:
|
|
- 3000:3000
|
|
prisma-studio:
|
|
build:
|
|
context: .build/dev
|
|
dockerfile: prisma.Dockerfile
|
|
hostname: sarlink-portal-studio
|
|
volumes:
|
|
- ./:/var/www/html/
|
|
ports:
|
|
- 5555:5555
|
|
database:
|
|
image: postgres:14
|
|
hostname: sarlink-portal-db
|
|
volumes:
|
|
- db-data:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: testpass123
|
|
POSTGRES_DB: mydb
|
|
|
|
|
|
volumes:
|
|
db-data:
|