From 494152be6673abf84af9b102f348336f08a0fe8d Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Sat, 30 Mar 2024 17:53:19 -0700 Subject: [PATCH] Update docker network `web` to use wider subnet and restricted DHCP pool --- fighter/config/traefik/README.md | 5 +++++ fighter/config/traefik/docker-compose.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 fighter/config/traefik/README.md diff --git a/fighter/config/traefik/README.md b/fighter/config/traefik/README.md new file mode 100644 index 0000000..4f1269b --- /dev/null +++ b/fighter/config/traefik/README.md @@ -0,0 +1,5 @@ +### The `web` Network + +Created with `docker network create --driver=bridge --subnet=172.20.0.0/23 --ip-range=172.20.1.0/24 web` + +Previous version was naive, and had a subnet equal in size to the IP range. This meant that we would occasionally encounter address colisions between services which needed static IPs, and those handed IPs automatically. \ No newline at end of file diff --git a/fighter/config/traefik/docker-compose.yml b/fighter/config/traefik/docker-compose.yml index c8433ba..f6299bb 100644 --- a/fighter/config/traefik/docker-compose.yml +++ b/fighter/config/traefik/docker-compose.yml @@ -7,7 +7,7 @@ services: restart: "no" networks: web: - ipv4_address: 172.18.0.27 + ipv4_address: 172.20.0.10 monitoring: ports: - 80:80