mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
hugo
This commit is contained in:
parent
8e37024787
commit
eb951eeaa9
14 changed files with 77 additions and 21 deletions
|
|
@ -32,6 +32,8 @@ let
|
|||
"she/her"
|
||||
];
|
||||
|
||||
test1.A = vps1.A ++ vps3.A;
|
||||
|
||||
localhost.A = [ (a "127.0.0.1") ];
|
||||
newtest.TXT = [ "uwu it works" ];
|
||||
|
||||
|
|
|
|||
54
newinfra/nix/modules/hugo-chat/default.nix
Normal file
54
newinfra/nix/modules/hugo-chat/default.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
dockerLogin = {
|
||||
registry = "docker.nilstrieb.dev";
|
||||
username = "nils";
|
||||
passwordFile = config.age.secrets.docker_registry_password.path;
|
||||
};
|
||||
in
|
||||
{
|
||||
age.secrets.hugochat_db_password.file = ../../secrets/hugochat_db_password.age;
|
||||
|
||||
virtualisation.oci-containers.containers = {
|
||||
/*
|
||||
hugo_chat_client:
|
||||
container_name: hugo-chat-client
|
||||
image: "docker.nilstrieb.dev/hugo-chat-client:63bd1922"
|
||||
restart: always
|
||||
ports:
|
||||
- "5002:80"
|
||||
*/
|
||||
hugo-chat-client = {
|
||||
image = "docker.nilstrieb.dev/hugo-chat-client:63bd1922";
|
||||
login = dockerLogin;
|
||||
ports = [ "5002:80" ];
|
||||
};
|
||||
/*
|
||||
hugo_chat_server:
|
||||
container_name: hugo-chat-server
|
||||
image: "docker.nilstrieb.dev/hugo-chat-server:63bd1922"
|
||||
ports:
|
||||
- "5001:8080"
|
||||
environment:
|
||||
SPRING_DATASOURCE_URL: "jdbc:postgresql://hugo-chat-db:5432/hugochat"
|
||||
SPRING_DATASOURCE_PASSWORD: "${HUGO_CHAT_DB_PASSWORD}"
|
||||
networks:
|
||||
- hugo-chat
|
||||
*/
|
||||
hugo-chat-server = {
|
||||
image = "docker.nilstrieb.dev/hugo-chat-server:63bd1922";
|
||||
ports = [ "5001:80" ];
|
||||
environment = {
|
||||
SPRING_DATASOURCE_URL = "jdbc:postgresql://vps1.local:5432/hugochat";
|
||||
};
|
||||
environmentFiles = [ config.age.secrets.hugochat_db_password.path ];
|
||||
login = dockerLogin;
|
||||
};
|
||||
/*
|
||||
POSTGRES_PASSWORD: "${HUGO_CHAT_DB_PASSWORD}"
|
||||
PGDATA: "/var/lib/postgresql/data/pgdata"
|
||||
*/
|
||||
|
||||
services.postgresql.ensureDatabases = [ "hugochat" ];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{ config, ... }: {
|
||||
age.secrets.minio_env_file.file = ../../secrets/minio_env_file.age;
|
||||
|
||||
services.minio = {
|
||||
enable = true;
|
||||
region = "eu";
|
||||
rootCredentialsFile = config.age.secrets.minio_env_file.path;
|
||||
};
|
||||
}
|
||||
6
newinfra/nix/modules/postgres/default.nix
Normal file
6
newinfra/nix/modules/postgres/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ pkgs, ... }: {
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_16;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue