-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
36 lines (35 loc) · 1.43 KB
/
compose.yml
File metadata and controls
36 lines (35 loc) · 1.43 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
services:
dashboard:
build:
context: .
dockerfile: dashboard/Dockerfile
args:
HOST_UID: ${HOST_UID:-1000}
HOST_GID: ${HOST_GID:-1000}
env_file: .env
environment:
# Absolute host path to the workspace directory — required for Open in VSCode functionality.
# Must match the host-side path of the ./workspace volume mount below.
# Example: /home/user/unshift/workspace
#- WORKSPACE_HOST_PATH=${WORKSPACE_HOST_PATH:-}
ports:
- "3000:3000"
volumes:
- dashboard-data:/app/dashboard/server/data
# Workspace volume: cloned repos and worktrees live here.
# Also used for Dev Container access from the host (see "Opening worktrees in VSCode" in README).
- ./workspace:/app/workspace
# Uncomment to mount a custom CA certificate bundle for self-hosted git instances
# example below (Fedora/RHEL specific)
#- /etc/pki/tls/certs/ca-bundle.crt:/app/custom-ca.crt:ro
# Uncomment for Vertex AI: mounts Google Application Default Credentials into the container
#- ${GOOGLE_APPLICATION_CREDENTIALS:-~/.config/gcloud/application_default_credentials.json}:/home/unshift/.config/gcloud/application_default_credentials.json:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/runs"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
restart: unless-stopped
volumes:
dashboard-data: