docker compose memory swap code example
Example: docker compose memory swap
version: '3'
services:
moonlight:
build: ./
restart: unless-stopped
hostname: moonlight
deploy:
resources:
limits:
memory: 4000M
reservations:
memory-swap: 8000M
ports:
- "80:3001"