docker——1
This commit is contained in:
22
docker-compose.yml
Normal file
22
docker-compose.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
services:
|
||||
backend:
|
||||
build:
|
||||
context: ./ems-backend
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- ./ems-backend/json-db:/app/json-db
|
||||
- ./ems-backend/uploads:/app/uploads
|
||||
environment:
|
||||
APP_BASE_URL: http://localhost:5173
|
||||
frontend:
|
||||
build:
|
||||
context: ./ems-frontend/ems-monitoring-system
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
VITE_API_BASE_URL: /api
|
||||
ports:
|
||||
- "5173:80"
|
||||
depends_on:
|
||||
- backend
|
||||
Reference in New Issue
Block a user