Skip to content

Commit dd786ce

Browse files
authored
feat: add docker-compose profile for frontend-only dev (#18)
* feat: add docker-compose profile for frontend-only dev * fix: improve networking and use explicit service dependency
1 parent e294c42 commit dd786ce

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,22 @@ services:
1010
- vibe-sessions:/app/agent/sessions
1111
restart: unless-stopped
1212

13+
frontend:
14+
image: node:20
15+
working_dir: /app
16+
ports:
17+
- "5899:5899"
18+
volumes:
19+
- ./frontend:/app
20+
environment:
21+
- VITE_API_URL=http://vibe-trading:8899
22+
command: sh -c "npm install && npm run dev -- --host --port 5899"
23+
profiles:
24+
- frontend
25+
depends_on:
26+
vibe-trading:
27+
condition: service_started
28+
1329
volumes:
1430
vibe-runs:
1531
vibe-sessions:

0 commit comments

Comments
 (0)