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,
Env: envVariables,
Mounts: [...volumesMount, ...bindsMount, ...filesMount],
...(command
? {
Command: ["/bin/sh"],
Args: ["-c", command],
}
: {}),
Command: ["/bin/sh"],
Args: [
"-c",
command ? command : `redis-server --requirepass ${databasePassword}`,
],
},
Networks: [{ Target: "dokploy-network" }],
Resources: {