-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (37 loc) · 1.35 KB
/
docker-compose.yml
File metadata and controls
38 lines (37 loc) · 1.35 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
services:
# Minimal backend-only stack. Sandbox containers are created dynamically
# by the UnoSim backend via the Docker socket and are not persistent services.
unosim-backend:
build:
context: .
dockerfile: Dockerfile
image: unosim-server:latest
container_name: unosim-server
restart: unless-stopped
environment:
- NODE_ENV=production
- ARDUINO_CACHE_DIR=/app/arduino-cache
- UNOSIM_SHARED_TEMP_DIR=/app/temp
- DOCKER_HOST=unix:///var/run/docker.sock
- DOCKER_SANDBOX_IMAGE=unosim-sandbox:latest
ports:
- "3000:3000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./server/arduino-cache:/app/arduino-cache
- ./temp:/app/temp
- ./storage:/app/storage
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
# NOTE: The mcp/sonarqube MCP server is intentionally NOT part of this stack.
# It is a stdio-based dev tool managed by Docker Desktop MCP Toolkit and
# launched on-demand per VS Code session. Running it as a persistent service
# makes no sense and causes constant restart loops.
#
# SonarQube itself (sonarqube + sonar-db) lives in its own stack at
# ~/Documents/sonarqube/docker-compose.yml and is reached from the host
# via http://localhost:9000.