cachix / devenv

Fast, Declarative, Reproducible, and Composable Developer Environments
https://devenv.sh
Apache License 2.0
3.56k stars 259 forks source link

Redis service should listen on unix socket when `port = 0` #1068

Open kalekseev opened 1 month ago

kalekseev commented 1 month ago

Current workaround

  services.redis.port = 0;
  services.redis.extraConfig = ''
    unixsocket redis.sock
    unixsocketperm 700
  '';
  env.REDISSOCKET = "${config.env.REDISDATA}/redis.sock";
domenkozar commented 1 month ago

Use $DEVENV_RUNTIME for sockets, to avoid long path errors.