Commit 679def8
fix(infra): pin static IPs, restart cloudflared on deploy
Root cause of intermittent 502s: cloudflared resolved 'app' once at
startup. When app container was recreated (env changes etc), it got
a new IP in compose's bridge network. Cloudflared kept dialing
stale 172.18.0.2 and got connection refused.
Fix:
- Define explicit 'spoonet' bridge network with 172.30.0.0/24
- Pin static IPs: app=.10, tunnel=.20, vector=.30
- Workflow restarts cloudflared after every app deploy as belt-and-
suspenders even though static IPs make this unnecessary
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e8bcdb8 commit 679def8
2 files changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
62 | 71 | | |
63 | 72 | | |
64 | 73 | | |
65 | 74 | | |
66 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
0 commit comments