mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Add docker compose file for production version, Add babel to fix imports in built code
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user