-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
50 lines (47 loc) · 1.28 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
42
43
44
45
46
47
48
49
50
# CogOS Node — Local Development Stack
#
# Usage:
# docker compose up # Full node (kernel + init)
# docker compose up cogos # Kernel only
#
# The workspace is mounted from the host. Run `cogos init` first
# if you haven't initialized a workspace yet.
services:
cogos:
image: cogos-dev/cogos:latest
build:
context: ../cogos
dockerfile: Dockerfile
ports:
- "${COGOS_PORT:-5200}:5200"
volumes:
- "${COGOS_WORKSPACE:-./workspace}:/workspace"
environment:
- COG_LOG_DEBUG=${COG_LOG_DEBUG:-}
command: ["serve", "--workspace", "/workspace", "--port", "5200"]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5200/health"]
interval: 10s
timeout: 3s
retries: 3
start_period: 5s
restart: unless-stopped
# Mod³ runs on host for macOS (needs audio device access).
# On Linux/headless, uncomment this and add device passthrough:
#
# mod3:
# image: cogos-dev/mod3:latest
# build:
# context: ../mod3
# ports:
# - "${MOD3_PORT:-5300}:5300"
# devices:
# - /dev/snd:/dev/snd
# depends_on:
# cogos:
# condition: service_healthy
# environment:
# - COGOS_ENDPOINT=http://cogos:5200
# restart: unless-stopped
volumes:
workspace: