mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
fix juicefs db cmd
This commit is contained in:
parent
27b863a83d
commit
d669607664
1 changed files with 8 additions and 0 deletions
|
|
@ -1,6 +1,11 @@
|
|||
# Auto-generated using compose2nix v0.3.1.
|
||||
{ pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
juicefsEnv = builtins.fromTOML (builtins.readFile /etc/nixos/secrets/juicefs.env);
|
||||
postgresPassword = juicefsEnv.POSTGRES_PASSWORD;
|
||||
in
|
||||
|
||||
{
|
||||
# Runtime
|
||||
virtualisation.docker = {
|
||||
|
|
@ -12,6 +17,9 @@
|
|||
# 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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue