added docker implementation for admin panel

This commit is contained in:
2025-08-31 14:55:33 +02:00
parent 311de4f78b
commit 8fb70ccccd
2 changed files with 24 additions and 0 deletions

12
admin/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 8003
CMD ["npm", "run", "dev"]

View File

@@ -11,6 +11,18 @@ services:
# - /app/node_modules # - /app/node_modules
# restart: unless-stopped # restart: unless-stopped
# admin-frontend:
# container_name: admin-frontend
# build: ./admin
# ports:
# - "8003:8003"
# environment:
# - CHOKIDAR_USEPOLLING=true
# volumes:
# - ./admin:/app
# - /app/node_modules
# restart: unless-stopped
borrow_system-backend: borrow_system-backend:
container_name: borrow_system-backend container_name: borrow_system-backend
build: ./backend build: ./backend