Just run teslamate as whatever user...

This commit is contained in:
niten 2023-11-28 17:46:40 -08:00
parent cba3a5df34
commit ebf75ad5a3
1 changed files with 1 additions and 3 deletions

View File

@ -23,12 +23,10 @@ let
service = {
image = teslaMateImage;
restart = "always";
volumes = [ "${stateDirectory}/import:/opt/app/import" ];
ports = [ "${toString teslaMatePort}:4000" ];
user = "${toString teslaMateUid}:${toString teslaMateUid}";
env_file = [ teslaMateEnvFile ];
capabilities.ALL = false;
depends_on = { postgres.condition = "service_healthy"; };
depends_on.postgres.condition = "service_healthy";
};
};
postgres = {