https://github.com/suraj-kumar00/fullstack-devops-project
https://github.com/suraj-kumar00/fullstack-devops-project
devops
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/suraj-kumar00/fullstack-devops-project
- Owner: Suraj-kumar00
- License: apache-2.0
- Created: 2024-10-02T10:27:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-28T12:13:51.000Z (over 1 year ago)
- Last Synced: 2025-04-05T12:14:08.879Z (about 1 year ago)
- Topics: devops
- Language: TypeScript
- Homepage:
- Size: 208 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FullStack-DevOps-Project
## Steps:
- write the `compose.yaml` file.
- write `.gitignore` file.
```bash
docker compose up db
```
### To check the container is up and running:
```bash
docker exec -it db psql -U postgres
```
## Postgres Commands:
```bash
\l
\dt
```
```bash
docker compose build
docker compose up -d backend
docker exec -it backend npx prisma migrate dev --name init
```
Insert data directly from postgres terminal
```bash
insert into "User" (name, email) values ('frompsql', 'userfrompsqlmail');
```
```bash
docker compose up -d frontend
```
to stop the containers:
```bash
docker compose stop
```