-
-
Notifications
You must be signed in to change notification settings - Fork 88
Options to enable configuring install for lower idle CPU. #160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
dad0523
80aee30
70cf948
acadf99
8ccda02
e3890e2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -250,13 +250,18 @@ install_dokploy() { | |
| $endpoint_mode \ | ||
| postgres:16 | ||
|
|
||
| redis_args="redis-server" | ||
| if [ -n "$REDIS_HZ" ]; then | ||
| redis_args="redis-server --hz $REDIS_HZ --dynamic-hz yes" | ||
| fi | ||
|
|
||
| docker service create \ | ||
| --name dokploy-redis \ | ||
| --constraint 'node.role==manager' \ | ||
| --network dokploy-network \ | ||
| --mount type=volume,source=dokploy-redis,target=/data \ | ||
| $endpoint_mode \ | ||
| redis:7 | ||
| redis:7 $redis_args | ||
|
|
||
| # Installation | ||
| # Set RELEASE_TAG environment variable for canary/feature versions | ||
|
|
@@ -268,6 +273,17 @@ install_dokploy() { | |
| # canary, feature/*, etc. → use the tag as-is | ||
| release_tag_env="-e RELEASE_TAG=$VERSION_TAG" | ||
| fi | ||
|
|
||
| HEALTH_EXTRA_OPTS="" | ||
| if [ "$HEALTH_CMD" = "none" ]; then | ||
| HEALTH_EXTRA_OPTS="$HEALTH_EXTRA_OPTS --no-healthcheck" | ||
| elif [ -n "$HEALTH_CMD" ]; then | ||
| HEALTH_EXTRA_OPTS="$HEALTH_EXTRA_OPTS --health-cmd $HEALTH_CMD" | ||
| fi | ||
| [ -n "$HEALTH_INTERVAL" ] && HEALTH_EXTRA_OPTS="$HEALTH_EXTRA_OPTS --health-interval $HEALTH_INTERVAL" | ||
| [ -n "$HEALTH_TIMEOUT" ] && HEALTH_EXTRA_OPTS="$HEALTH_EXTRA_OPTS --health-timeout $HEALTH_TIMEOUT" | ||
| [ -n "$HEALTH_RETRIES" ] && HEALTH_EXTRA_OPTS="$HEALTH_EXTRA_OPTS --health-retries $HEALTH_RETRIES" | ||
| [ -n "$HEALTH_START_PERIOD" ] && HEALTH_EXTRA_OPTS="$HEALTH_EXTRA_OPTS --health-start-period $HEALTH_START_PERIOD" | ||
|
Comment on lines
+278
to
+286
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When Add a guard so timing options are only appended when HEALTH_EXTRA_OPTS=""
if [ "$HEALTH_CMD" = "none" ]; then
HEALTH_EXTRA_OPTS="--no-healthcheck"
else
if [ -n "$HEALTH_CMD" ]; then
HEALTH_EXTRA_OPTS="$HEALTH_EXTRA_OPTS --health-cmd $HEALTH_CMD"
fi
[ -n "$HEALTH_INTERVAL" ] && HEALTH_EXTRA_OPTS="$HEALTH_EXTRA_OPTS --health-interval $HEALTH_INTERVAL"
[ -n "$HEALTH_TIMEOUT" ] && HEALTH_EXTRA_OPTS="$HEALTH_EXTRA_OPTS --health-timeout $HEALTH_TIMEOUT"
[ -n "$HEALTH_RETRIES" ] && HEALTH_EXTRA_OPTS="$HEALTH_EXTRA_OPTS --health-retries $HEALTH_RETRIES"
[ -n "$HEALTH_START_PERIOD" ] && HEALTH_EXTRA_OPTS="$HEALTH_EXTRA_OPTS --health-start-period $HEALTH_START_PERIOD"
fi |
||
|
|
||
| docker service create \ | ||
| --name dokploy \ | ||
|
|
@@ -281,6 +297,7 @@ install_dokploy() { | |
| --update-parallelism 1 \ | ||
| --update-order stop-first \ | ||
| --constraint 'node.role == manager' \ | ||
| $HEALTH_EXTRA_OPTS \ | ||
| $endpoint_mode \ | ||
| $release_tag_env \ | ||
| -e ADVERTISE_ADDR=$advertise_addr \ | ||
|
|
@@ -361,4 +378,4 @@ if [ "$1" = "update" ]; then | |
| update_dokploy | ||
| else | ||
| install_dokploy | ||
| fi | ||
| fi | ||
Uh oh!
There was an error while loading. Please reload this page.