webserver: Add ipv6nat
This commit is contained in:
parent
088ab6419b
commit
339e6dd417
1 changed files with 27 additions and 0 deletions
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue