forked from vul-os/vulos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 951 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (38 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Vula OS — Dev Environment
# Usage:
# docker compose up → backend on :8080, frontend on :5173, landing on :3000
# docker compose up --build → rebuild everything
#
# Open http://localhost:5173 for dev (hot reload)
# Open http://localhost:8080 for production build
# Open http://localhost:3000 for landing page
services:
backend:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
- "3000:3000"
shm_size: '1g'
privileged: true
volumes:
- vulos-data:/root/.vulos
environment:
- PORT=8080
- LANDING_PORT=3000
- VULOS_DEV=true
frontend:
image: node:22-alpine
working_dir: /app
ports:
- "5173:5173"
volumes:
- .:/app
- node_modules:/app/node_modules
command: sh -c "npm install && npm run dev -- --host 0.0.0.0"
environment:
- VITE_API_URL=http://localhost:8080
volumes:
vulos-data:
node_modules: