create arch_mirror.nix

This commit is contained in:
Richie Cahill
2024-08-03 13:26:50 -04:00
parent 7f73454f75
commit d12ca3fb0e
10 changed files with 227 additions and 31 deletions

View File

@ -1,19 +1,6 @@
{ config, ... }:
let
vars = import ../vars.nix;
in
{
virtualisation.oci-containers.containers = {
arch_mirror = {
image = "ubuntu/apache2:latest";
volumes = [
"${../../../users/richie/global/docker_templates}/file_server/sites/:/etc/apache2/sites-enabled/"
"${vars.main_mirror}:/data"
];
ports = [ "800:80" ];
extraOptions = [ "--network=web" ];
autoStart = true;
};
haproxy = {
image = "haproxy:latest";
user = "600:600";