Repository navigation
docker guide
Ferdi ÜNAL edited this page Jan 25, 2026
·
3 revisions
docker-compose up -ddocker-compose logs -f soketidocker-compose downdocker-compose build --no-cache
docker-compose up -d| Service | Port | Description |
|---|---|---|
| Soketi Server | 6001 | WebSocket server |
| Metrics | 9601 | Prometheus metrics |
| Redis | 6379 | Cache & clustering |
# Pull the latest image
docker pull funal/soketi-rs:latest
# Run with default configuration
docker run -d \
--name soketi \
-p 6001:6001 \
-p 9601:9601 \
funal/soketi-rs:latest
# Run with custom configuration
docker run -d \
--name soketi \
-p 6001:6001 \
-p 9601:9601 \
-v $(pwd)/config.json:/app/config.json \
funal/soketi-rs:latestversion: '3.8'
services:
soketi:
image: funal/soketi-rs:latest
ports:
- "6001:6001"
- "9601:9601"
volumes:
- ./config.json:/app/config.json
restart: unless-stoppedCreate a config.json file:
{
"host": "0.0.0.0",
"port": 6001,
"metrics_port": 9601,
"apps": [
{
"id": "app-id",
"key": "app-key",
"secret": "app-secret",
"max_connections": 100,
"enable_client_messages": true,
"enabled": true
}
]
}Create a .env file:
# Soketi
SOKETI_HOST=0.0.0.0
SOKETI_PORT=6001
SOKETI_METRICS_PORT=9601
# App Configuration
APP_ID=your-app-id
APP_KEY=your-app-key
APP_SECRET=your-app-secret
# Redis (optional)
REDIS_HOST=redis
REDIS_PORT=6379# Check server status
curl http://localhost:6001/health
# Check metrics
curl http://localhost:9601/metrics# Find process using the port
lsof -i :6001
# Stop the process
kill -9 <PID># View logs
docker-compose logs soketi
# Restart container
docker-compose restart soketidocker-compose down -v
docker-compose up -dlinux/amd64linux/arm64
-
latest- Latest stable release -
v1.x.x- Specific version -
main- Latest development build
Repository: ferdiunal/soketi-rs
For detailed documentation, see Getting Started and Configuration.