From 34a2a04b6bb3e2f14fd9ee0ad70222e6f8124854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Tue, 5 Dec 2023 10:55:22 +0100 Subject: [PATCH] caddy: set static IP --- docker-compose.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index febcdfd..7ded65d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,8 +29,9 @@ services: - "/www/notes:/srv/notes" - "timetracker-static:/srv/timetracker" networks: - - public - - caddy + public: + ipv4_address: 192.168.240.2 + caddy: profiles: - infra - base @@ -609,6 +610,10 @@ networks: internal: true public: attachable: true + ipam: + config: + # 192.168.240.1 - 192.168.240.254 + - subnet: "192.168.240.0/24" postgres: external: true mariadb: