nix-config/hosts/franz/arion/feed/arion-compose.nix

48 lines
898 B
Nix
Raw Normal View History

2024-03-15 21:32:09 +01:00
{pkgs, ...}: {
project.name = "feed";
networks.dmz = {
name = "dmz";
external = true;
};
networks.transport = {};
services = {
ttrss.service = {
image = "wangqiru/ttrss:latest";
container_name = "ttrss";
ports = [
"181:80"
];
environment = {
PUID = 1000;
PGID = 1000;
2024-03-17 15:18:23 +01:00
DB_HOST = "feed-db";
2024-03-15 21:32:09 +01:00
};
env_file = [
"/home/ghoscht/.docker/feed/ttrss.env"
];
restart = "always";
2024-03-17 15:18:23 +01:00
dns = ["1.1.1.1"];
2024-03-15 21:32:09 +01:00
networks = [
"dmz"
2024-03-17 15:18:23 +01:00
"transport"
2024-03-15 21:32:09 +01:00
];
};
2024-03-17 15:18:23 +01:00
feed-db.service = {
2024-03-15 21:33:45 +01:00
image = "postgres:13-alpine";
volumes = [
2024-03-17 15:18:23 +01:00
"/drives/hdd/docker/feed/ttrss_db:/var/lib/postgresql/data"
2024-03-15 21:33:45 +01:00
];
env_file = [
"/home/ghoscht/.docker/feed/ttrss.env"
];
restart = "always";
networks = [
2024-03-17 15:18:23 +01:00
"transport"
2024-03-15 21:33:45 +01:00
];
};
2024-03-15 21:32:09 +01:00
};
}