Configure full Docker setup and confirm consequential actions
This commit is contained in:
+12
-1
@@ -6,7 +6,7 @@ services:
|
||||
stop_grace_period: 60s
|
||||
depends_on:
|
||||
ntfy:
|
||||
condition: service_started
|
||||
condition: service_healthy
|
||||
environment:
|
||||
TZ: ${TZ:?Set TZ to your host timezone; scripts/configure-compose.py detects it}
|
||||
PIPELINES_NTFY_URL: http://ntfy/pipelines
|
||||
@@ -20,6 +20,12 @@ services:
|
||||
- pipelines-data:/data
|
||||
- opencode-home:/home/pipelines
|
||||
- pipelines-workspace:/workspace
|
||||
healthcheck:
|
||||
test: ["CMD", "pipelines", "--url", "ws://127.0.0.1:8080/connect", "status", "--json"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 12
|
||||
start_period: 10s
|
||||
ntfy:
|
||||
image: binwiederhier/ntfy:latest
|
||||
command: serve
|
||||
@@ -41,6 +47,11 @@ services:
|
||||
- "${NTFY_BIND_ADDRESS:-127.0.0.1}:8090:80"
|
||||
volumes:
|
||||
- ntfy-data:/var/lib/ntfy
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1/v1/health"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 12
|
||||
secrets:
|
||||
ntfy_token:
|
||||
file: ./secrets/ntfy-token.txt
|
||||
|
||||
Reference in New Issue
Block a user