petersweb-infra/nixos/arion/arion-compose.nix

48 lines
1.1 KiB
Nix
Raw Normal View History

2024-12-07 00:25:28 -09:00
{ pkgs, ... }:
2024-12-06 23:05:42 -09:00
{
2024-12-20 01:27:59 -09:00
project.name = "forgejo";
networks = {
forgejo = {
external = false;
};
};
2024-12-07 00:25:28 -09:00
services = {
2024-12-20 01:27:59 -09:00
server = {
image = {
enableRecommendedContents = true;
};
service = {
image = "codeberg.org/forgejo/forgejo:9";
container_name = "forgejo";
environment = {
2024-12-20 01:58:31 -09:00
USER_UID="1000";
USER_GID="1000";
2024-12-20 01:27:59 -09:00
};
restart = "always";
networks = ["forgejo"];
volumes = [
2024-12-20 02:33:19 -09:00
"/var/forge:/data"
2024-12-20 01:59:29 -09:00
"/etc/timezone:/etc/timezone:ro"
2024-12-20 01:27:59 -09:00
"/etc/localtime:/etc/localtime:ro"
];
ports = [
2024-12-20 01:59:29 -09:00
"3000:3000"
2024-12-20 01:43:44 -09:00
"2200:22"
2024-12-20 01:27:59 -09:00
];
2024-12-06 23:05:42 -09:00
2024-12-20 01:27:59 -09:00
##
#useHostStore = true;
#command = [ "sh" "-c" ''
# cd "$$WEB_ROOT"
# ${pkgs.python3}/bin/python -m http.server
# '' ];
#ports = [
# "8009:8000" # host:container
#];
#environment.WEB_ROOT = "${pkgs.nix.doc}/share/doc/nix/manual";
#stop_signal = "SIGINT";
};
2024-12-06 23:05:42 -09:00
};
};
2024-12-07 00:25:28 -09:00
}