fixed backend and frontend
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ import env from "dotenv";
|
||||
env.config();
|
||||
const app = express();
|
||||
const port = 7001;
|
||||
const rateLimit = require("express-rate-limit");
|
||||
import rateLimit from "express-rate-limit";
|
||||
|
||||
app.use(cors());
|
||||
app.use(express.urlencoded({ extended: true }));
|
||||
|
||||
+9
-8
@@ -5,11 +5,12 @@ services:
|
||||
ports:
|
||||
- "7002:80"
|
||||
restart: always
|
||||
# backend:
|
||||
# container_name: backend
|
||||
# build: ./backend
|
||||
# ports:
|
||||
# - "7001:7001"
|
||||
#volumes:
|
||||
# - ./backend:/bikelane-backend
|
||||
# restart: unless-stopped
|
||||
|
||||
backend:
|
||||
container_name: backend
|
||||
build: ./backend
|
||||
ports:
|
||||
- "7001:7001"
|
||||
volumes:
|
||||
- ./backend:/bikelane-backend
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user