From 429bb391731f5f559763a31b332eeabfddcf7916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Brabant?= Date: Mon, 16 Oct 2023 11:53:35 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=EF=B8=8F=20Explictly=20define=20su?= =?UTF-8?q?bnet=20for=20default=20compose=20network?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.cloud.yml | 7 +++++++ docker-compose.dev.yml | 7 +++++++ docker-compose.yml | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/docker-compose.cloud.yml b/docker-compose.cloud.yml index fcba594..e3da7a3 100644 --- a/docker-compose.cloud.yml +++ b/docker-compose.cloud.yml @@ -9,6 +9,13 @@ version: '3.8' +networks: + # We explicitly define a subnet to avoid unintentional shadowing + default: + ipam: + config: + - subnet: 172.20.0.0/24 + services: cloud-proxy: diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 9fb5a1a..d8215c1 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -3,6 +3,13 @@ version: '3.8' volumes: postgres-data-dev: +networks: + # We explicitly define a subnet to avoid unintentional shadowing + default: + ipam: + config: + - subnet: 172.20.0.0/24 + services: gateway: diff --git a/docker-compose.yml b/docker-compose.yml index adf8d72..c557456 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,6 +3,13 @@ version: '3.8' volumes: postgres-data: +networks: + # We explicitly define a subnet to avoid unintentional shadowing + default: + ipam: + config: + - subnet: 172.20.0.0/24 + services: gateway: