Add service discovery script to jobs, extend nginx and host directory support. Update environment variables, configs, and examples.
This commit is contained in:
1 parent
5305687f98
commit
3aecb3a631
6 files changed
+151
-15
No files matched your search
+3
-2
@@ -91,14 +91,15 @@ services:
|
||||
JOBS_FILE: /config/jobs.toml
|
||||
SCRIPTS_DIR: /jobs
|
||||
CONTENT_DIR: /content
|
||||
HOST_DIR: /host/srv
|
||||
HOST_DIR: /host
|
||||
TRIGGER_DIR: /run/jobs/triggers
|
||||
CONTROL_SOCKET: /run/jobs/control.sock
|
||||
volumes:
|
||||
- ${CONTENT_DIR}:/content
|
||||
- ./config:/config
|
||||
- ./jobs:/jobs:ro
|
||||
- ${JOBS_HOST_DIR:-/srv}:/host/srv:ro
|
||||
- ${JOBS_SRV_DIR:-/srv}:/host/srv:ro
|
||||
- ${JOBS_NGINX_DIR:-/etc/nginx}:/host/nginx:ro
|
||||
- ./runtime/jobs:/run/jobs
|
||||
healthcheck:
|
||||
test: ["CMD", "jobctl", "list"]
|
||||
|
||||
Reference in new issue
Block a user