Skip to content

Commit

Permalink
fix: docker compose not sync the node modules
Browse files Browse the repository at this point in the history
  • Loading branch information
sayinmehmet47 committed Oct 4, 2024
1 parent 12cb3d9 commit e2076ac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:latest
WORKDIR /app
COPY package.json .
COPY package.json package-lock.json ./
RUN npm install
COPY . .

Expand Down
2 changes: 1 addition & 1 deletion backend/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ app.use(
'https://staging.kitapkurdu.xyz',
'https://www.staging.kitapkurdu.xyz',
'https://kitapkurdu.onrender.com',
'https://kitap-kurdu-bx87.vercel.app', // Add your Vercel domain here
'https://kitap-kurdu-bx87.vercel.app',
],
allowedHeaders: ['Content-Type'],
credentials: true,
Expand Down
10 changes: 4 additions & 6 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ volumes:
services:
backend:
build: ./backend/
# image: sayinmehmet47/backend-kitapkurdu-1:latest
volumes:
- ./backend/:/app
- ./backend:/app
- /app/node_modules
ports:
- '5000:5000'
env_file:
Expand All @@ -19,14 +19,12 @@ services:

client:
build: ./client/

# image: sayinmehmet47/client-kitapkurdu-1:latest
volumes:
- ./client/:/app
- ./client:/app
- /app/node_modules
depends_on:
- backend
ports:
- '3000:3000'

env_file:
- client/.env

0 comments on commit e2076ac

Please sign in to comment.