-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
45 lines (43 loc) · 1.23 KB
/
docker-compose.yaml
File metadata and controls
45 lines (43 loc) · 1.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
42
43
44
45
---
# DroidFarm — local development compose
#
# Provides:
# dashboard — web UI on :8080 (requires a reachable kubeconfig)
# docs — MkDocs live-reload on :8001
#
# Cuttlefish emulators require KVM on a bare-metal Linux host and cannot run
# inside Docker on macOS/Windows. Use k3d/kind + `make deploy` for a full
# cluster setup. See docs/getting-started.md for instructions.
#
# Usage:
# docker compose up dashboard # just the UI
# docker compose up docs # just the docs
# docker compose up # all services
services:
dashboard:
build:
context: dashboard
dockerfile: Dockerfile
image: droidfarm-dashboard:dev
ports:
- "8080:8080"
environment:
- PORT=8080
volumes:
# Mount host kubeconfig so the dashboard can reach your cluster
- ${HOME}/.kube:/root/.kube:ro
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:8080/healthz"]
interval: 10s
timeout: 5s
retries: 3
docs:
image: squidfunk/mkdocs-material:latest
command: ["serve", "--dev-addr=0.0.0.0:8000"]
ports:
- "8001:8000"
volumes:
- .:/docs:ro
working_dir: /docs
restart: unless-stopped