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 . . COPY . .
EXPOSE 3001 EXPOSE 7001
CMD ["npm", "start"] CMD ["npm", "start"]

View File

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

View File

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

View File

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

View File

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