You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Forward traffic to the Docker host on port `3080` (or your configured `CLIENT_PORT`), or directly to the `pixie-traefik` container on port `80` if the proxy is on the same Docker network.
70
+
- Enable **Websockets Support**.
92
71
93
72
### Architecture
94
73
95
-
**Standalone** (single entry point):
96
-
```
97
-
localhost:3080 ──► pixie-client (nginx)
98
-
├── / → static files
99
-
├── /api/ → proxy to pixie-server:3000
100
-
├── /api-docs → proxy to pixie-server:3000
101
-
└── /socket.io/ → proxy to pixie-server:3000 (WebSocket)
Copy file name to clipboardExpand all lines: README.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,21 +33,31 @@ docker compose up -d --scale server=3
33
33
34
34
| Service | URL |
35
35
|---------|-----|
36
-
| App |http://localhost:5173|
37
-
| API Docs |http://localhost:3000/api-docs|
36
+
| App |http://localhost:3080|
37
+
| API Docs |http://localhost:3080/api-docs|
38
38
39
-
> 💡 **Dynamic Scaling:** You can add more server instances at any time using `--scale server=N`. Nginx is configured with `least_conn` to balance active connections across all instances.
39
+
> 💡 **Dynamic Scaling:** You can add more server instances at any time using `--scale server=N`. Traefik is configured with `least_conn` and sticky sessions to balance active connections across all instances.
40
40
41
41
### Manual
42
42
43
43
```bash
44
+
# Prerequisites: MongoDB and Redis running locally
45
+
44
46
# Server
45
47
cd server && npm install && npm run dev
46
48
47
49
# Client (separate terminal)
48
50
cd client && npm install && npm run dev
49
51
```
50
52
53
+
### Testing
54
+
55
+
Run the full test suite (requires Docker):
56
+
```bash
57
+
npm test
58
+
```
59
+
This script handles temporary infrastructure (Redis) automatically.
0 commit comments