mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-11 04:48:25 -07:00
fix juicefs db cmd
This commit is contained in:
parent
df90890f0b
commit
b3681435ed
1 changed files with 7 additions and 7 deletions
|
|
@ -12,18 +12,18 @@
|
|||
# Containers
|
||||
virtualisation.oci-containers.containers."myjfs-mount-service" = {
|
||||
image = "juicedata/mount:ce-v1.2.1";
|
||||
environment = {
|
||||
POSTGRES_PASSWORD = postgresPassword;
|
||||
};
|
||||
volumes = [
|
||||
"/mnt/myjfs:/mnt/jfs:rw,rshared"
|
||||
"juice_juicefs_cache:/var/jfsCache:rw"
|
||||
"/etc/nixos/secrets/juicefs.env:/run/secrets/juicefs.env:ro"
|
||||
];
|
||||
cmd = [
|
||||
"juicefs"
|
||||
"mount"
|
||||
"postgres://death916@postgres:5432/juicefs?sslmode=disable"
|
||||
"/mnt/jfs"
|
||||
"sh"
|
||||
"-c"
|
||||
''
|
||||
source /run/secrets/juicefs.env && \
|
||||
juicefs mount postgres://death916@postgres:5432/juicefs?sslmode=disable /mnt/jfs
|
||||
''
|
||||
];
|
||||
dependsOn = [
|
||||
"postgres-for-juicefs"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue