Just run teslamate as whatever user...
This commit is contained in:
parent
cba3a5df34
commit
ebf75ad5a3
|
@ -23,12 +23,10 @@ let
|
||||||
service = {
|
service = {
|
||||||
image = teslaMateImage;
|
image = teslaMateImage;
|
||||||
restart = "always";
|
restart = "always";
|
||||||
volumes = [ "${stateDirectory}/import:/opt/app/import" ];
|
|
||||||
ports = [ "${toString teslaMatePort}:4000" ];
|
ports = [ "${toString teslaMatePort}:4000" ];
|
||||||
user = "${toString teslaMateUid}:${toString teslaMateUid}";
|
|
||||||
env_file = [ teslaMateEnvFile ];
|
env_file = [ teslaMateEnvFile ];
|
||||||
capabilities.ALL = false;
|
capabilities.ALL = false;
|
||||||
depends_on = { postgres.condition = "service_healthy"; };
|
depends_on.postgres.condition = "service_healthy";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
postgres = {
|
postgres = {
|
||||||
|
|
Loading…
Reference in New Issue