From 1a5851fba61303e8ea80a720dbf3c866bd357c66 Mon Sep 17 00:00:00 2001 From: Paul Walko Date: Fri, 23 Dec 2022 19:30:06 -0500 Subject: [PATCH] enable ipv6 internally --- fogcutter/docker/caddy.sh | 4 +++- fogcutter/docker/firefly.sh | 4 +++- fogcutter/docker/geoserver.sh | 4 +++- fogcutter/docker/gitea.sh | 4 +++- fogcutter/docker/mapproxy.sh | 4 +++- fogcutter/docker/mastodon.sh | 4 +++- fogcutter/docker/plex.sh | 4 +++- 7 files changed, 21 insertions(+), 7 deletions(-) diff --git a/fogcutter/docker/caddy.sh b/fogcutter/docker/caddy.sh index c4aa404..62b4aaa 100755 --- a/fogcutter/docker/caddy.sh +++ b/fogcutter/docker/caddy.sh @@ -3,7 +3,9 @@ set -e up () { - docker network create pew-net || true + # Ensure iptables rules exist + # https://askubuntu.com/questions/1052919/iptables-reload-restart-on-ubuntu/1072948#1072948 + docker network create --ipv6 --subnet "fd01::/80" pew-net || true # main caddy container docker run \ diff --git a/fogcutter/docker/firefly.sh b/fogcutter/docker/firefly.sh index ed646b3..0b8176f 100755 --- a/fogcutter/docker/firefly.sh +++ b/fogcutter/docker/firefly.sh @@ -6,7 +6,9 @@ set -e # https://docs.firefly-iii.org/firefly-iii/advanced-installation/cron/ up () { - docker network create pew-net || true + # Ensure iptables rules exist + # https://askubuntu.com/questions/1052919/iptables-reload-restart-on-ubuntu/1072948#1072948 + docker network create --ipv6 --subnet "fd01::/80" pew-net || true # Exposed on port 8080 in pew-net # env options: https://raw.githubusercontent.com/firefly-iii/firefly-iii/main/.env.example diff --git a/fogcutter/docker/geoserver.sh b/fogcutter/docker/geoserver.sh index f3587c1..3b544d0 100755 --- a/fogcutter/docker/geoserver.sh +++ b/fogcutter/docker/geoserver.sh @@ -3,7 +3,9 @@ set -e up () { - docker network create pew-net || true + # Ensure iptables rules exist + # https://askubuntu.com/questions/1052919/iptables-reload-restart-on-ubuntu/1072948#1072948 + docker network create --ipv6 --subnet "fd01::/80" pew-net || true # Exposed on port 8080 in pew-net docker run \ diff --git a/fogcutter/docker/gitea.sh b/fogcutter/docker/gitea.sh index 076b5d6..ebed682 100755 --- a/fogcutter/docker/gitea.sh +++ b/fogcutter/docker/gitea.sh @@ -3,7 +3,9 @@ set -e up () { - docker network create pew-net || true + # Ensure iptables rules exist + # https://askubuntu.com/questions/1052919/iptables-reload-restart-on-ubuntu/1072948#1072948 + docker network create --ipv6 --subnet "fd01::/80" pew-net || true # Exposed on port 3000 in pew-net docker run \ diff --git a/fogcutter/docker/mapproxy.sh b/fogcutter/docker/mapproxy.sh index de730fa..ef2ebf3 100755 --- a/fogcutter/docker/mapproxy.sh +++ b/fogcutter/docker/mapproxy.sh @@ -3,7 +3,9 @@ set -e up () { - docker network create pew-net || true + # Ensure iptables rules exist + # https://askubuntu.com/questions/1052919/iptables-reload-restart-on-ubuntu/1072948#1072948 + docker network create --ipv6 --subnet "fd01::/80" pew-net || true # Exposed on port 8080 in pew-net docker run \ diff --git a/fogcutter/docker/mastodon.sh b/fogcutter/docker/mastodon.sh index db4daa7..74b4532 100755 --- a/fogcutter/docker/mastodon.sh +++ b/fogcutter/docker/mastodon.sh @@ -12,7 +12,9 @@ DB_PASS=mastodon DB_PORT=5432 up () { - docker network create pew-net || true + # Ensure iptables rules exist + # https://askubuntu.com/questions/1052919/iptables-reload-restart-on-ubuntu/1072948#1072948 + docker network create --ipv6 --subnet "fd01::/80" pew-net || true docker run \ --detach \ diff --git a/fogcutter/docker/plex.sh b/fogcutter/docker/plex.sh index e43464f..a59fa70 100755 --- a/fogcutter/docker/plex.sh +++ b/fogcutter/docker/plex.sh @@ -3,7 +3,9 @@ set -e up () { - docker network create pew-net || true + # Ensure iptables rules exist + # https://askubuntu.com/questions/1052919/iptables-reload-restart-on-ubuntu/1072948#1072948 + docker network create --ipv6 --subnet "fd01::/80" pew-net || true # Exposed on port 32400 in pew-net docker run \