Merge pull request #172 from Dokploy/167-invalid-password-set-after-creating-a-redis-database

fix(#167): pass args in redis to require pass
This commit is contained in:
Mauricio Siu 2024-06-28 00:11:33 -06:00 committed by GitHub
commit c071be6ad9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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: {