Skip to content

Commit dd89e1b

Browse files
committed
Docker Compose scripts and docs
1 parent 1ce3fd6 commit dd89e1b

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

docs/docs/deployment/compose.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,33 @@ Named volumes (`pgdata`, `mariadbdata`, `mysqldata`, `mongodata`) isolate persis
108108

109109
---
110110

111+
````markdown
112+
---
113+
114+
## 🔍 Troubleshooting port publishing on WSL2 (rootless Podman)
115+
116+
```bash
117+
# Verify the port is listening (dual-stack)
118+
ss -tlnp | grep 4444 # modern tool
119+
netstat -anp | grep 4444 # legacy fallback
120+
````
121+
122+
> A line like `:::4444 LISTEN rootlessport` is **normal** – the IPv6
123+
> wildcard socket (`::`) also accepts IPv4 when `net.ipv6.bindv6only=0`
124+
> (the default on Linux).
125+
126+
**WSL2 quirk**
127+
128+
WSL's NAT maps only the IPv6 side, so `http://127.0.0.1:4444` fails from Windows. Tell Podman you are inside WSL and restart your containers:
129+
130+
```bash
131+
# inside the WSL distro
132+
echo "wsl" | sudo tee /etc/containers/podman-machine
133+
```
134+
135+
`ss` should now show an explicit `0.0.0.0:4444` listener, making the
136+
service reachable from Windows and the LAN.
137+
111138
## 📚 References
112139

113140
* Docker Compose CLI (`up`, `logs`, `down`) – official docs
@@ -116,3 +143,5 @@ Named volumes (`pgdata`, `mariadbdata`, `mysqldata`, `mongodata`) isolate persis
116143
* Health-check gating with `depends_on: condition: service_healthy`
117144
* [UBI9 runtime on Apple Silicon limitations (`x86_64-v2` glibc)](https://github.com/containers/podman/issues/15456)
118145
* General Containerfile build guidance (Fedora/Red Hat)
146+
147+

podman-compose-mcpgateway.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ services:
3232
# Environment – pick ONE database URL line, comment the rest
3333
# ──────────────────────────────────────────────────────────────────────
3434
environment:
35-
- HOST="0.0.0.0"
36-
- PORT="4444"
35+
- HOST=0.0.0.0
36+
- PORT=4444
3737
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD:-mysecretpassword}@postgres:5432/mcp
3838
# - DATABASE_URL=mysql+pymysql://mysql:${MYSQL_PASSWORD:-changeme}@mysql:3306/mcp
3939
# - DATABASE_URL=mysql+pymysql://admin:${MARIADB_PASSWORD:-changeme}@mariadb:3306/mcp
4040
# - DATABASE_URL=mongodb://admin:${MONGO_PASSWORD:-changeme}@mongodb:27017/mcp
4141
- REDIS_URL=redis://redis:6379/0
42-
- JWT_SECRET_KEY=change-me
42+
- JWT_SECRET_KEY=changeme
4343
- BASIC_AUTH_USER=admin
44-
- BASIC_AUTH_PASSWORD=change-me
44+
- BASIC_AUTH_PASSWORD=changeme
4545

4646
depends_on: # Default stack: Postgres + Redis
4747
postgres:

0 commit comments

Comments
 (0)