1
0
Fork 0

webserver: Add ipv6nat

This commit is contained in:
Daniel Kempkens 2022-07-30 23:13:59 +02:00
parent 088ab6419b
commit 339e6dd417

View file

@ -1,12 +1,39 @@
{
virtualisation.arion.projects.webserver.settings = {
services = {
ipv6nat = {
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"
];
};
ifconfig-sexy = {
service = {
image = "ghcr.io/nifoc/ifconfig.sexy-caddy:master";
restart = "always";
networks = [ "web" ];
};
};
};
networks.webserver = {
driver = "bridge";
enable_ipv6 = true;
ipam = ''
driver: default
config:
- subnet: fd00:dead:beef::/48
'';
};
};
}