Add tandoor containers
deploy config / Explore-Gitea-Actions (push) Failing after 5s Details

This commit is contained in:
Tom 2024-08-09 23:18:48 +02:00
parent 6fe889bd1b
commit ed117dfe33
1 changed files with 48 additions and 0 deletions

View File

@ -82,6 +82,54 @@
qemuGuest.enable = true;
};
virtualisation = {
docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
};
};
oci-containers.containers = {
db_recipes = {
image = "postgres:16-alpine";
environmentFiles = [
/root/tandoor/.env
];
volumes = [
"/root/tandoor/postgresql:/var/lib/postgresql/data"
];
};
web_recipes = {
image = "vabene1111/recipes";
environmentFiles = [
/root/tandoor/.env
];
volumes = [
"staticfiles:/opt/recipes/staticfiles"
"nginx_config:/opt/recipes/nginx/conf.d"
"/root/tandoor/mediafiles:/opt/recipes/mediafiles"
];
dependsOn = [ "db_recipes" ];
};
nginx_recipes = {
image = "nginx:mainline-alpine";
ports = [
"8080:80"
];
environmentFiles = [
/root/tandoor/.env
];
volumes [
"nginx_config:/etc/nginx/conf.d:ro"
"staticfiles:/static:ro"
"/root/tandoor/mediafiles:/media:ro"
];
dependsOn = [ "web_recipes" ];
};
};
};
systemd = {
timers."start-runner" = {
wantedBy = [ "timers.target" ];