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;
|
|
|
|
DB_HOST = "db";
|
|
|
|
};
|
|
|
|
env_file = [
|
|
|
|
"/home/ghoscht/.docker/feed/ttrss.env"
|
|
|
|
];
|
|
|
|
restart = "always";
|
|
|
|
networks = [
|
|
|
|
"dmz"
|
|
|
|
];
|
|
|
|
};
|
2024-03-15 21:33:45 +01:00
|
|
|
db.service = {
|
|
|
|
image = "postgres:13-alpine";
|
|
|
|
volumes = [
|
|
|
|
"/home/ghoscht/.docker/feed/ttrss_db:/var/lib/postgresql/data"
|
|
|
|
];
|
|
|
|
env_file = [
|
|
|
|
"/home/ghoscht/.docker/feed/ttrss.env"
|
|
|
|
];
|
|
|
|
restart = "always";
|
|
|
|
networks = [
|
|
|
|
"dmz"
|
|
|
|
];
|
|
|
|
};
|
2024-03-15 21:32:09 +01:00
|
|
|
};
|
|
|
|
}
|