You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chajia/docker-compose.dev.yml

21 lines
521 B

# dev-only overrides: lighter resources + auto-restart (reduces engine OOM/crash)
services:
mysql:
restart: unless-stopped
command:
- --default-authentication-plugin=mysql_native_password
- --innodb_buffer_pool_size=128M
- --max_connections=50
deploy:
resources:
limits:
memory: 512M
redis:
restart: unless-stopped
command: redis-server --maxmemory 128mb --maxmemory-policy allkeys-lru
deploy:
resources:
limits:
memory: 256M