2024-03-15 21:32:09 +01:00
|
|
|
{pkgs, ...}: {
|
|
|
|
project.name = "feed";
|
|
|
|
|
|
|
|
networks.dmz = {
|
|
|
|
name = "dmz";
|
|
|
|
external = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
networks.transport = {};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
ttrss.service = {
|
2024-03-31 22:05:29 +02:00
|
|
|
image = "wangqiru/ttrss:latest-2024-02-28";
|
2024-03-15 21:32:09 +01:00
|
|
|
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-31 22:05:29 +02:00
|
|
|
"/storage/dataset/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
|
|
|
};
|
|
|
|
}
|