Mount host repositories for Docker execution with host user ownership

This commit is contained in:
2026-10-10 01:22:02 +01:00
parent 7565693957
commit 68042aad5d
10 changed files with 161 additions and 12 deletions
+23 -2
View File
@@ -1,6 +1,7 @@
services:
pipelines:
build: .
user: "${PIPELINES_UID:-10001}:${PIPELINES_GID:-10001}"
init: true
restart: unless-stopped
stop_grace_period: 60s
@@ -16,14 +17,34 @@ services:
PIPELINES_HOST_IP: ${PIPELINES_HOST_IP:-}
PIPELINES_PUBLIC_PORT: ${PIPELINES_PORT:-8080}
PIPELINES_NTFY_READER: phone-reader
PIPELINES_UID: ${PIPELINES_UID:-10001}
PIPELINES_GID: ${PIPELINES_GID:-10001}
secrets:
- ntfy_token
ports:
- "${PIPELINES_BIND_ADDRESS:-0.0.0.0}:${PIPELINES_PORT:-8080}:8080"
volumes:
- pipelines-data:/data
- opencode-home:/home/pipelines
- type: volume
source: pipelines-data
target: /data
volume:
nocopy: true
- type: volume
source: opencode-home
target: /home/pipelines
volume:
nocopy: true
- pipelines-workspace:/workspace
- type: bind
source: ${PIPELINES_HOST_HOME:?Run ./install.sh to configure the host repository mount}
target: ${PIPELINES_HOST_HOME:?Run ./install.sh to configure the host repository mount}
bind:
create_host_path: false
- type: bind
source: ${PIPELINES_HOST_REPOSITORY:?Run ./install.sh to configure the host repository mount}
target: ${PIPELINES_HOST_REPOSITORY:?Run ./install.sh to configure the host repository mount}
bind:
create_host_path: false
healthcheck:
test: ["CMD", "pipelines", "--url", "ws://127.0.0.1:8080/connect", "status", "--json"]
interval: 5s