Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Update restart.sh and update.sh to use --force-recreate flag for Docker services

Bill Yang363b39bd5652
diff --git a/restart.sh b/restart.sh
index e1c78f49f..69bff0852 100644
--- a/restart.sh
+++ b/restart.sh
@@ -21,10 +21,10 @@ source .env
# Start the appropriate services with updated environment variables
if [ "$USE_WEBSERVER" = "false" ]; then
# Start without the caddy service when using --no-webserver
- docker compose up -d backend client clickhouse postgres
+ docker compose up -d backend client clickhouse postgres --force-recreate
else
# Start all services including caddy
- docker compose up -d
+ docker compose up -d --force-recreate
fi
echo "Services restarted. You can monitor logs with: docker compose logs -f"
\ No newline at end of file
diff --git a/update.sh b/update.sh
index 16810d9d1..d6f2d9385 100644
--- a/update.sh
+++ b/update.sh
@@ -36,10 +36,10 @@ source .env
if [ "$USE_WEBSERVER" = "false" ]; then
# Start without the caddy service when using --no-webserver
- docker compose up -d backend client clickhouse postgres
+ docker compose up -d backend client clickhouse postgres --force-recreate
else
# Start all services including caddy
- docker compose up -d
+ docker compose up -d --force-recreate
fi
echo "Update complete. Services are running with the latest version."