1
0
Fork 0
dotfiles/container/webserver.nix

42 lines
913 B
Nix
Raw Normal View History

2022-07-30 19:19:14 +00:00
{
virtualisation.arion.projects.webserver.settings = {
services = {
2022-07-30 21:13:59 +00:00
ipv6nat = {
2022-07-30 21:16:43 +00:00
service = {
image = "robbertkl/ipv6nat:latest";
name = "ipv6nat";
restart = "always";
networks = [ "web" ];
capabilities = {
ALL = false;
NET_ADMIN = true;
NET_RAW = true;
};
network_mode = "host";
volumes = [
"/var/run/docker.sock:/var/run/docker.sock:ro"
];
2022-07-30 21:13:59 +00:00
};
};
2022-07-30 19:19:14 +00:00
ifconfig-sexy = {
service = {
image = "ghcr.io/nifoc/ifconfig.sexy-caddy:master";
restart = "always";
2022-07-30 21:13:59 +00:00
networks = [ "web" ];
2022-07-30 19:19:14 +00:00
};
};
};
2022-07-30 21:13:59 +00:00
networks.webserver = {
driver = "bridge";
enable_ipv6 = true;
ipam = ''
driver: default
config:
- subnet: fd00:dead:beef::/48
'';
};
2022-07-30 19:19:14 +00:00
};
}