-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
42 lines (38 loc) · 2.23 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
42 lines (38 loc) · 2.23 KB
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
# ─────────────────────────────────────────────────────────────────────
# bMAS — Development Overrides
# ─────────────────────────────────────────────────────────────────────
# Usage: docker compose -f docker-compose.yml -f docker-compose.dev.yml up
#
# This file overrides the production compose for local development:
# - Mounts source code into containers for hot reload
# - Runs dev servers instead of production builds
# ─────────────────────────────────────────────────────────────────────
services:
daemon:
build:
context: ./daemon
volumes:
- ./bmas.yaml:/etc/bmas/bmas.yaml:ro
- ./daemon:/app # Mount source for hot reload
- daemon-data:/data # SQLite persistence (matches production)
command: ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "9000", "--reload"]
dashboard:
build:
context: ./mission-control
target: builder # Use the builder stage (has devDependencies)
volumes:
- ./bmas.yaml:/etc/bmas/bmas.yaml:ro
- ./mission-control:/app # Mount source for hot reload
- /app/node_modules # Exclude node_modules from mount
- /app/.next # Exclude .next from mount
command: ["npx", "next", "dev", "--turbopack", "-H", "0.0.0.0", "-p", "9321"]
environment:
- BMAS_CONFIG=/etc/bmas/bmas.yaml
- REDIS_PASSWORD=${REDIS_PASSWORD}
- ALLOWED_DEV_ORIGINS=${ALLOWED_DEV_ORIGINS:-}
# ── Volumes ──────────────────────────────────────────────────────────
# Inherits redis-data from docker-compose.yml; daemon-data must be
# declared here too since dev compose is loaded as an override.
volumes:
daemon-data:
driver: local