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
b3681435ed
commit
9b24285bad
1 changed files with 13 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue