.github
.vscode
docs
hydra
keys
lib
modules
pkgs
systems
artemision
palatine-hill
attic
docker
archiveteam.nix
books.nix
default.nix
firefly.nix
foundry.nix
glances.nix
haproxy.cfg
haproxy.nix
minecraft.nix
nextcloud.nix
postgres.nix
restic.nix
torr.nix
unifi.nix
haproxy
configuration.nix
default.nix
firewall.nix
gitea.nix
hardware-changes.nix
hardware.nix
hydra.nix
minio.nix
networking.nix
nextcloud.nix
secrets.yaml
vars.nix
zfs.nix
users
utils
.envrc
.gitconfig
.gitignore
.sops.yaml
CONTRIBUTING.md
README.md
checks.nix
flake.lock
flake.nix
shell.nix
statix.toml
treefmt.toml
34 lines
652 B
Nix
34 lines
652 B
Nix
{ ... }:
|
|
|
|
{
|
|
virtualisation.oci-containers.containers = {
|
|
haproxy = {
|
|
image = "haproxy:latest";
|
|
extraOptions = [
|
|
"--restart=always"
|
|
"--network=haproxy-net"
|
|
];
|
|
volumes = [
|
|
"${./haproxy.cfg}:/usr/local/etc/haproxy/haproxy.cfg:ro"
|
|
"/ZFS/ZFS-primary/docker/haproxy/certs:/etc/ssl/certs:ro"
|
|
];
|
|
ports = [
|
|
"80:80"
|
|
"443:443"
|
|
"25565:25565"
|
|
];
|
|
environment = {
|
|
PUID = "600";
|
|
PGID = "600";
|
|
};
|
|
dependsOn = [
|
|
"nextcloud"
|
|
"grafana"
|
|
"foundryvtt"
|
|
"glances"
|
|
"mc-router"
|
|
];
|
|
};
|
|
};
|
|
}
|