feat: update port configurations for backend and frontend; adjust Dockerfile and docker-compose settings

This commit is contained in:
2025-07-31 17:36:19 +02:00
parent a39e22fab9
commit a2f22ec395
5 changed files with 31 additions and 16 deletions

View File

@@ -7,6 +7,6 @@ RUN npm install
COPY . .
EXPOSE 3001
EXPOSE 7001
CMD ["npm", "start"]

View File

@@ -3,7 +3,7 @@ import cors from "cors";
import env from "dotenv";
env.config();
const app = express();
const port = 3001;
const port = 7001;
app.use(cors());
app.use(express.urlencoded({ extended: true }));

View File

@@ -1,21 +1,29 @@
services:
# frontend:
# container_name: frontend
# build: ./frontend
# ports:
# - "3003:3003"
# environment:
# - CHOKIDAR_USEPOLLING=true
# volumes:
# - ./frontend:/app
# - /app/node_modules
# restart: unless-stopped
frontend:
container_name: frontend
build: ./frontend
ports:
- "7002:7002"
networks:
- proxynet
environment:
- CHOKIDAR_USEPOLLING=true
volumes:
- ./frontend:/app
- /app/node_modules
restart: unless-stopped
backend:
container_name: backend
build: ./backend
ports:
- "3001:3001"
- "7001:7001"
networks:
- proxynet
volumes:
- ./backend:/bikelane-backend
restart: unless-stopped
restart: unless-stopped
networks:
proxynet:
external: true

View File

@@ -7,6 +7,6 @@ RUN npm install
COPY . .
EXPOSE 3003
EXPOSE 7002
CMD ["npm", "start"]

View File

@@ -2,4 +2,11 @@ import { defineConfig } from "vite";
import tailwindcss from "@tailwindcss/vite";
export default defineConfig({
plugins: [tailwindcss()],
server: {
host: "0.0.0.0",
port: 7002,
watch: {
usePolling: true,
},
},
});