Initial commit
All checks were successful
Deploy storage stack / deploy (push) Successful in 24s

This commit is contained in:
Sergei Poljanski 2026-05-26 17:13:14 +03:00
commit 479e3d5cf9
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
10 changed files with 466 additions and 0 deletions

36
flake.nix Normal file
View 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"
'';
};
};
}