mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-09-14 11:06:15 +05:00
Dokploy stopped using Redis in v0.29.9 when the deployment queue moved to an in-memory implementation, and install.sh no longer creates the dokploy-redis service. Remove the remaining references so fresh installs don't report Redis as unhealthy: - checkRedisHealth from infrastructure health check - cleanRedis/reloadRedis endpoints and their UI actions - initializeRedis dev setup and redis-connection config - unused bullmq dependency
38 lines
1.0 KiB
TypeScript
38 lines
1.0 KiB
TypeScript
import { exec } from "node:child_process";
|
|
import { exit } from "node:process";
|
|
import { promisify } from "node:util";
|
|
|
|
const execAsync = promisify(exec);
|
|
|
|
import { setupDirectories } from "@dokploy/server/setup/config-paths";
|
|
import { initializePostgres } from "@dokploy/server/setup/postgres-setup";
|
|
import {
|
|
initializeNetwork,
|
|
initializeSwarm,
|
|
} from "@dokploy/server/setup/setup";
|
|
import {
|
|
createDefaultMiddlewares,
|
|
createDefaultServerTraefikConfig,
|
|
createDefaultTraefikConfig,
|
|
initializeStandaloneTraefik,
|
|
TRAEFIK_VERSION,
|
|
} from "@dokploy/server/setup/traefik-setup";
|
|
|
|
(async () => {
|
|
try {
|
|
setupDirectories();
|
|
createDefaultMiddlewares();
|
|
await initializeSwarm();
|
|
await initializeNetwork();
|
|
createDefaultTraefikConfig();
|
|
createDefaultServerTraefikConfig();
|
|
await execAsync(`docker pull traefik:v${TRAEFIK_VERSION}`);
|
|
await initializeStandaloneTraefik();
|
|
await initializePostgres();
|
|
console.log("Dokploy setup completed");
|
|
exit(0);
|
|
} catch (e) {
|
|
console.error("Error in dokploy setup", e);
|
|
}
|
|
})();
|