-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
67 lines (64 loc) · 2.18 KB
/
docker-compose.dev.yml
File metadata and controls
67 lines (64 loc) · 2.18 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Development container specific overrides for AIXCL
# This file extends the main docker-compose.yml with dev container configuration
services:
devcontainer:
build:
context: .. # Parent directory (repo root)
dockerfile: .devcontainer/Dockerfile
network_mode: host
privileged: true
security_opt:
- seccomp:unconfined
cap_add:
- SYS_PTRACE
- SYS_ADMIN
devices:
- /dev/kmsg:/dev/kmsg
volumes:
# Workspace
- ..:/workspace:cached
# Docker socket for DinD
- /var/run/docker.sock:/var/run/docker.sock
# Entrypoint scripts - mount entire scripts directory to avoid DinD file mount issue
- ../scripts/runtime:/scripts/runtime:ro
# Persistence volumes - using external named volumes for consistency across contexts
# These volumes are shared between local Docker, devcontainer, and GitHub Codespaces
- aixcl-ollama-data:/home/vscode/.ollama
- aixcl-hf-cache:/home/vscode/.cache/huggingface
- aixcl-llamacpp-data:/models
- aixcl-pgdata:/var/lib/postgresql/data
- aixcl-pgadmin:/var/lib/pgadmin
- aixcl-grafana:/var/lib/grafana
- aixcl-prometheus:/prometheus
- aixcl-loki:/loki
- aixcl-alloy-data:/var/lib/alloy
environment:
- DOCKER_BUILDKIT=1
- COMPOSE_DOCKER_CLI_BUILD=1
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
- HUGGINGFACE_HUB_CACHE=/home/vscode/.cache/huggingface
- OLLAMA_HOST=127.0.0.1:11434
# Tell AIXCL where entrypoint scripts are (for DinD compatibility)
- AIXCL_ENTRYPOINT_DIR=/scripts/runtime
working_dir: /workspace
command: sleep infinity
# Health check to ensure dev container is ready
healthcheck:
test: ["CMD-SHELL", "docker info || exit 1"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
volumes:
# Named volumes for persistence across contexts (local, devcontainer, Codespaces)
# These volumes are created automatically when first used
aixcl-ollama-data:
aixcl-hf-cache:
aixcl-llamacpp-data:
aixcl-pgdata:
aixcl-pgadmin:
aixcl-grafana:
aixcl-prometheus:
aixcl-loki:
aixcl-alloy-data: