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
* added profiled services and prevented nginx loop when profiled services are inactive
* update local development guide in docs to include profile information
Copy file name to clipboardExpand all lines: apps/docs/src/getting-started/local-development.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,35 @@ docker compose down
81
81
docker compose up --build -d
82
82
```
83
83
84
+
## Docker Compose Profiles
85
+
86
+
By default, running `docker compose up -d` starts only the **core stack** (backend, frontend, MongoDB, Redis). Additional services are **opt-in** and can be enabled using Docker Compose profiles.
87
+
88
+
Profiles allow you to start only the services you need for your workflow, keeping local development less resource-intensive.
89
+
90
+
-`ag` — AG frontend
91
+
→ http://localhost:3001
92
+
93
+
-`staff` — Staff dashboard
94
+
→ http://localhost:3002
95
+
96
+
-`semantic-search` — Semantic course search
97
+
→ http://localhost:3010
98
+
99
+
-`docs` — Docs + Storybook
100
+
→ http://localhost:3003 / http://localhost:3005
101
+
102
+
-`dev` — MinIO (staff photo uploads)
103
+
→ http://localhost:3006
104
+
105
+
```sh
106
+
# Start core + staff dashboard
107
+
docker compose --profile staff up -d
108
+
109
+
# Start multiple profiles
110
+
docker compose --profile ag --profile staff up -d
111
+
```
112
+
84
113
## Ports
85
114
`docker compose up` will automatically setup certain services on your localhost ports. By default, `DEV_PORT_PREFIX` is set to `30`, which means services will be available on ports starting with `30XX`. You can adjust this by setting the `DEV_PORT_PREFIX` environment variable if you need to run multiple instances of the repository in parallel (e.g., for git worktree setups).
0 commit comments