From e53c5afceb364e9ec22ff32d07901ca8a80bbb52 Mon Sep 17 00:00:00 2001 From: Chris Taylor Date: Tue, 12 Nov 2024 12:41:44 +0000 Subject: [PATCH] Give docker containers static IPs --- docker/docker-compose.provider.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/docker/docker-compose.provider.yml b/docker/docker-compose.provider.yml index f1ba0641e..56c59d877 100644 --- a/docker/docker-compose.provider.yml +++ b/docker/docker-compose.provider.yml @@ -11,8 +11,8 @@ services: ports: - '9229:9229' networks: - - internal - - external + internal: + ipv4_address: 172.18.0.2 logging: driver: 'json-file' options: @@ -40,8 +40,8 @@ services: ports: - '9229:9229' networks: - - internal - - external + internal: + ipv4_address: 172.18.0.3 logging: driver: 'json-file' options: @@ -65,7 +65,8 @@ services: env_file: - ../dev/scripts/.env.development networks: - - internal + internal: + ipv4_address: 172.18.0.4 logging: driver: 'json-file' options: @@ -94,7 +95,8 @@ services: env_file: - ../.env.${NODE_ENV} networks: - - internal + internal: + ipv4_address: 172.18.0.5 logging: driver: 'json-file' options: @@ -127,7 +129,9 @@ services: - caddy_data:/data - caddy_config:/config networks: - - external + external: + internal: + ipv4_address: 172.18.0.6 logging: driver: 'json-file' options: @@ -190,6 +194,11 @@ networks: internal: name: internal internal: true + driver: bridge + ipam: + config: + - subnet: 172.18.0.0/16 + gateway: 172.18.0.1 external: name: external volumes: