Add docker compose file for production version, Add babel to fix imports in built code

This commit is contained in:
ShootingStar91
2024-03-13 10:06:10 +02:00
parent e8ffbdb15a
commit 00dfd0d9ad
10 changed files with 2505 additions and 11 deletions
+19
View File
@@ -0,0 +1,19 @@
services:
now-db-frontend:
container_name: nowdb-frontend
image: node:20-alpine3.16
volumes:
- ./frontend/:/usr/src/app
ports:
- 5173:5173
command: >
sh -c "cd /usr/src/app && npm ci && npm run dev -- --host"
now-db-backend:
container_name: nowdb-backend
image: node:20-alpine3.16
volumes:
- ./backend/:/usr/src/app
ports:
- 4000:4000
command: >
sh -c "cd /usr/src/app && npm ci && npm run dev"