2026-05-12 22:01:25 -04:00
# Docker Quick Start -- 5 Minutes to Running Bridge
2025-10-31 16:17:04 -04:00
2026-05-12 22:01:25 -04:00
Get your Kosmi-IRC bridge running in Docker in 5 minutes.
2025-10-31 16:17:04 -04:00
## Prerequisites
- Docker installed
- Docker Compose installed
- A Kosmi room URL
- An IRC channel
## Steps
### 1. Edit Configuration (2 minutes)
2026-05-12 22:01:25 -04:00
```bash
cp matterbridge.toml.example matterbridge.toml
nano matterbridge.toml
```
Change these 3 things:
2025-10-31 16:17:04 -04:00
```toml
[kosmi.hyperspaceout]
2026-05-12 22:01:25 -04:00
RoomURL="https://app.kosmi.io/room/@YOUR_ROOM " # <-- Your Kosmi room
2025-10-31 16:17:04 -04:00
2026-05-12 22:01:25 -04:00
[irc.zeronode]
Server="irc.libera.chat:6697" # <-- Your IRC server
Nick="kosmi-relay" # <-- Your bot's nickname
2025-10-31 16:17:04 -04:00
[[gateway.inout]]
2026-05-12 22:01:25 -04:00
account="irc.zeronode"
channel="#your -channel" # <-- Your IRC channel
2025-10-31 16:17:04 -04:00
```
2026-05-12 22:01:25 -04:00
### 2. Build and Run (2 minutes)
2025-10-31 16:17:04 -04:00
```bash
docker-compose up -d
```
### 3. Check It's Working (1 minute)
```bash
docker-compose logs -f
```
Look for:
```
2026-05-12 22:01:25 -04:00
INFO Successfully connected to Kosmi
INFO Connection succeeded (IRC)
INFO Gateway(s) started successfully. Now relaying messages
2025-10-31 16:17:04 -04:00
```
2026-05-12 22:01:25 -04:00
### 4. Test It
2025-10-31 16:17:04 -04:00
2026-05-12 22:01:25 -04:00
- Send a message in Kosmi --> should appear in IRC
- Send a message in IRC --> should appear in Kosmi
2025-10-31 16:17:04 -04:00
## Common Commands
```bash
# View logs
docker-compose logs -f
# Stop bridge
docker-compose down
# Restart bridge
docker-compose restart
# Rebuild after code changes
docker-compose build && docker-compose up -d
```
## Troubleshooting
### "Connection failed"
1. Check your configuration:
```bash
2026-05-12 22:01:25 -04:00
grep -E "RoomURL|Server|channel" matterbridge.toml
2025-10-31 16:17:04 -04:00
```
2. Enable debug logging:
2026-05-12 22:01:25 -04:00
- Edit `matterbridge.toml` : Set `Debug=true` under the appropriate bridge section
2025-10-31 16:17:04 -04:00
- Restart: `docker-compose restart`
- Watch logs: `docker-compose logs -f`
### "Messages not relaying"
1. Check both bridges are connected:
```bash
2026-05-12 22:01:25 -04:00
docker-compose logs | grep -i "connected\|succeeded"
2025-10-31 16:17:04 -04:00
```
2. Verify channel names:
- Kosmi channel must be `"main"`
- IRC channel must include `#` (e.g., `"#your-channel"` )
2026-05-12 22:01:25 -04:00
## Persistent Token Cache
2025-10-31 16:17:04 -04:00
2026-05-12 22:01:25 -04:00
If using email/password authentication, the JWT is cached in `./data/` which is mounted into the container. This survives container rebuilds and restarts. See [TOKEN_PERSISTENCE.md ](TOKEN_PERSISTENCE.md ) for details.
2025-10-31 16:17:04 -04:00
2026-05-12 22:01:25 -04:00
## Need More Help?
2025-10-31 16:17:04 -04:00
2026-05-12 22:01:25 -04:00
- Full Docker guide: [DOCKER_DEPLOYMENT.md ](DOCKER_DEPLOYMENT.md )
- Quick reference: [QUICK_REFERENCE.md ](QUICK_REFERENCE.md )
- IRC commands: [IRC.md ](../IRC.md )