Skip to content

Commit

Permalink
fix: improve docker quality
Browse files Browse the repository at this point in the history
  • Loading branch information
devsargam committed Feb 29, 2024
1 parent f1d6c51 commit dffc74c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ services:
app:
build: .
container_name: cms-docker
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/cms?schema=public
ports:
- '3000:3000'
volumes:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"lint:fix": "eslint --max-warnings 0 --config .eslintrc . --fix",
"format:fix": "prettier --write \"**/*.{ts,tsx,json}\"",
"format:check": "prettier --check \"**/*.{ts,tsx,json}\"",
"dev:docker": "DATABASE_URL=postgresql://postgres:postgres@db:5432/cms?schema=public prisma migrate deploy && next dev",
"dev:docker": "npm run prisma:migrate && next dev",
"prisma:migrate": "prisma migrate deploy",
"prepare": "husky install"
},
"dependencies": {
Expand Down

0 comments on commit dffc74c

Please sign in to comment.