Skip to content

Commit

Permalink
Change backend ports
Browse files Browse the repository at this point in the history
Cloud Run has default 8080 port
  • Loading branch information
frieZZerr committed Jun 3, 2024
1 parent 0888152 commit dd930b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion project_10/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ services:
backend:
build: ./server
ports:
- "3001:3001"
- "8080:8080"
2 changes: 1 addition & 1 deletion project_10/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN npm rebuild
COPY . .

# Expose the port the app runs on
EXPOSE 3001
EXPOSE 8080

# Command to run the app
CMD ["npm", "start"]
2 changes: 1 addition & 1 deletion project_10/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ app.use(cors());

const { initDb } = require('./models/index');

const port = 3001;
const port = 8080;

// Routers
const postRouter = require('./routes/Posts');
Expand Down

0 comments on commit dd930b4

Please sign in to comment.