This commit is contained in:
commit
479e3d5cf9
10 changed files with 466 additions and 0 deletions
36
flake.nix
Normal file
36
flake.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
description = "storage — Postgres + MinIO for asxp.io";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pkgs.postgresql_17
|
||||
pkgs.minio-client
|
||||
pkgs.docker-compose
|
||||
pkgs.openssl
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
if [ -f .env ]; then
|
||||
set -a
|
||||
source .env
|
||||
set +a
|
||||
fi
|
||||
|
||||
echo "storage dev shell ready"
|
||||
echo " docker compose up -d - bring stack up"
|
||||
echo " psql -h localhost ... - if you forward 5432"
|
||||
echo " mc alias set local ... - point mc at MinIO"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue