fix(#167): pass args in redis to require pass

This commit is contained in:
Mauricio Siu
2024-06-28 00:06:54 -06:00
parent d2a07195b0
commit 059a98c575

View File

@@ -50,12 +50,11 @@ export const buildRedis = async (redis: RedisWithMounts) => {
Image: dockerImage, Image: dockerImage,
Env: envVariables, Env: envVariables,
Mounts: [...volumesMount, ...bindsMount, ...filesMount], Mounts: [...volumesMount, ...bindsMount, ...filesMount],
...(command Command: ["/bin/sh"],
? { Args: [
Command: ["/bin/sh"], "-c",
Args: ["-c", command], command ? command : `redis-server --requirepass ${databasePassword}`,
} ],
: {}),
}, },
Networks: [{ Target: "dokploy-network" }], Networks: [{ Target: "dokploy-network" }],
Resources: { Resources: {