fix juicefs db cmd

This commit is contained in:
death916 2025-09-11 05:20:16 -07:00
parent b3681435ed
commit 9b24285bad

View file

@ -66,6 +66,19 @@
volumes = [
"/home/death916/docker/volumes/postgres:/var/lib/postgresql/data:rw"
];
ports = [
"5432:5432/tcp"
];
log-driver = "journald";
extraOptions = [
"--health-cmd=sh -c 'pg_isready -U death916 -d juicefs'"
"--health-interval=10s"
"--health-retries=5"
"--health-timeout=5s"
"--network-alias=postgres"
"--network=juice_default"
];
};
systemd.services."docker-postgres-for-juicefs" = {
serviceConfig = {
EnvironmentFile = "/etc/nixos/secrets/juicefs.env";