2022-08-06 20:31:18 +00:00
|
|
|
{ config, inputs, pkgs, ... }:
|
|
|
|
{
|
2023-07-10 07:17:02 +00:00
|
|
|
config.virtualisation.oci-containers.containers.fic-generator = {
|
|
|
|
image = "fic-generator:latest";
|
2022-08-06 20:31:18 +00:00
|
|
|
imageFile = pkgs.dockerTools.buildImage {
|
2023-07-10 07:17:02 +00:00
|
|
|
name = "fic-generator";
|
2022-08-06 20:31:18 +00:00
|
|
|
tag = "latest";
|
|
|
|
created = "now";
|
|
|
|
config = {
|
2023-07-10 07:17:02 +00:00
|
|
|
Cmd = [ "${inputs.ficpkgs.packages.x86_64-linux.fic-generator}/bin/generator" ];
|
2022-08-06 20:31:18 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
autoStart = true;
|
|
|
|
environment = {
|
|
|
|
MYSQL_HOST = "db";
|
|
|
|
};
|
|
|
|
workdir = "/srv";
|
|
|
|
extraOptions = [ "--network=phobos-lan" "--ip=172.18.0.41" ];
|
|
|
|
volumes = [
|
|
|
|
"/etc/hosts:/etc/hosts:ro"
|
2023-07-10 07:17:02 +00:00
|
|
|
"/var/lib/fic/generator:/srv/GENERATOR"
|
2022-08-06 20:31:18 +00:00
|
|
|
"/var/lib/fic/teams:/srv/TEAMS"
|
|
|
|
"/var/lib/fic/settingsdist:/srv/SETTINGSDIST:ro"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|