Skip to content

Commit f2cfdda

Browse files
ralyodioclaude
andcommitted
chore(mailu): pin Docker network subnet to match SUBNET; ignore runtime state
The base compose declares no network, so Docker assigns the default bridge an arbitrary subnet that won't match mailu.env SUBNET — breaking Mailu's internal service auth/relay. Add a docker-compose.override.yml.example that pins the default network to 192.168.203.0/24, and gitignore the live override + Mailu runtime state (mailu.env, certs/, data/). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 32ba55e commit f2cfdda

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,11 @@
66
*.log
77
.env
88

9+
# Mailu runtime: secrets, local network override, and state
10+
deploy/mailu/mailu.env
11+
deploy/mailu/docker-compose.override.yml
12+
deploy/mailu/data/
13+
deploy/mailu/certs/
14+
915
# Claude Code local worktrees/state
1016
.claude/
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# docker-compose.override.yml — copy to docker-compose.override.yml (gitignored).
2+
#
3+
# The base docker-compose.yml does not declare a network, so Docker would assign
4+
# the project's default bridge an arbitrary subnet. Mailu trusts SUBNET (from
5+
# mailu.env) as its internal network for service-to-service auth and relaying, so
6+
# the real network subnet MUST equal SUBNET or internal auth/relay breaks. This
7+
# override pins the default network to the same subnet you set as SUBNET in
8+
# mailu.env (default 192.168.203.0/24). Compose loads this file automatically.
9+
networks:
10+
default:
11+
driver: bridge
12+
ipam:
13+
config:
14+
- subnet: 192.168.203.0/24

0 commit comments

Comments
 (0)