Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ pgdata
# Prisma
src/generated/prisma
prisma/seed.ts

# Sockudo
sockudo
39 changes: 39 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,44 @@ services:
retries: 5
start_period: 15s

valkey:
image: valkey/valkey:9-alpine
restart: unless-stopped
command: valkey-server --appendonly yes --maxmemory 256mb --maxmemory-policy allkeys-lru
volumes:
- valkey_data:/data
healthcheck:
test: [ "CMD", "valkey-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 3

sockudo:
image: ghcr.io/rustnsparks/sockudo:2.9.0
ports:
- "6001:6001"
depends_on:
valkey:
condition: service_healthy
environment:
- REDIS_URL=redis://valkey:6379/0
- ADAPTER_DRIVER=redis
- CACHE_DRIVER=redis
- QUEUE_DRIVER=redis
- RATE_LIMITER_DRIVER=redis
volumes:
- ./sockudo:/app/config:ro
- sockudo_logs:/app/logs
deploy:
resources:
limits:
memory: 512M
cpus: '1.0'
reservations:
memory: 256M
cpus: '0.5'

volumes:
unleash-postgres-data:
sockudo_logs:
valkey_data:
Loading
Loading