From 634cab34648ba35e1ec304b56baacfae622bb9e6 Mon Sep 17 00:00:00 2001 From: cclohmar Date: Fri, 10 Jul 2026 22:05:30 +0100 Subject: [PATCH] fix: static IPs 172.16.0.0/24 in stack.yaml --- compose/stack.yaml | 9 ++++++--- deploy.sh | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/compose/stack.yaml b/compose/stack.yaml index 33adc6e..fbfa8bb 100644 --- a/compose/stack.yaml +++ b/compose/stack.yaml @@ -17,7 +17,8 @@ services: timeout: 10s retries: 3 networks: - - nextwks-net + nextwks-net: + ipv4_address: 172.16.0.10 authelia: image: git24hcom/authelia:latest @@ -35,7 +36,8 @@ services: timeout: 10s retries: 3 networks: - - nextwks-net + nextwks-net: + ipv4_address: 172.16.0.11 launcher: image: alpine:latest @@ -56,7 +58,8 @@ services: timeout: 10s retries: 3 networks: - - nextwks-net + nextwks-net: + ipv4_address: 172.16.0.12 networks: nextwks-net: diff --git a/deploy.sh b/deploy.sh index 8c7d305..69ac613 100755 --- a/deploy.sh +++ b/deploy.sh @@ -98,7 +98,7 @@ if [ "$GREENFIELD" = true ]; then # Podman network + deploy stack echo "[5/5] Deploying containers on $NETWORK_NAME..." - podman network create "$NETWORK_NAME" 2>&1 || true + podman network create --subnet 172.16.0.0/24 "$NETWORK_NAME" 2>&1 || true podman-compose -f "$TARGET_DIR/compose/stack.yaml" down 2>/dev/null || true podman-compose -f "$TARGET_DIR/compose/stack.yaml" up -d 2>&1 || echo "[WARN] Stack deploy had issues"