fix: postgresql on ARM
This commit is contained in:
parent
9b67a253f1
commit
bc802b6f19
2 changed files with 7 additions and 2 deletions
|
|
@ -873,6 +873,11 @@ export function generateDatabaseConfiguration(database: any, arch: string):
|
||||||
}
|
}
|
||||||
if (isARM(arch)) {
|
if (isARM(arch)) {
|
||||||
configuration.volume = `${id}-${type}-data:/var/lib/postgresql`;
|
configuration.volume = `${id}-${type}-data:/var/lib/postgresql`;
|
||||||
|
configuration.environmentVariables = {
|
||||||
|
POSTGRES_PASSWORD: dbUserPassword,
|
||||||
|
POSTGRES_USER: dbUser,
|
||||||
|
POSTGRES_DB: defaultDatabase
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return configuration
|
return configuration
|
||||||
} else if (type === 'redis') {
|
} else if (type === 'redis') {
|
||||||
|
|
@ -909,7 +914,7 @@ export function generateDatabaseConfiguration(database: any, arch: string):
|
||||||
return configuration
|
return configuration
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export function isARM(arch) {
|
export function isARM(arch: string) {
|
||||||
if (arch === 'arm' || arch === 'arm64') {
|
if (arch === 'arm' || arch === 'arm64') {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
csb.nix
2
csb.nix
|
|
@ -1,7 +1,7 @@
|
||||||
with import <nixpkgs> {};
|
with import <nixpkgs> {};
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "git";
|
name = "environment";
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
git
|
git
|
||||||
git-lfs
|
git-lfs
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue