0f2ec7c1b3
- docker-compose.prod.yml: MySQL tuning (innodb_buffer_pool=4G), resource limits, log rotation - scripts/prod-deploy.sh: production startup script mirroring start-server.sh sequence with pre-flight checks and sysctl tuning - conf/dist/env.production: production environment variable template Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
46 lines
885 B
YAML
46 lines
885 B
YAML
services:
|
|
ac-database:
|
|
command: >
|
|
--innodb_buffer_pool_size=4G
|
|
--innodb_log_file_size=512M
|
|
--innodb_flush_log_at_trx_commit=2
|
|
--innodb_flush_method=O_DIRECT
|
|
--max_connections=300
|
|
--query_cache_size=0
|
|
--query_cache_type=0
|
|
--slow_query_log=1
|
|
--long_query_time=2
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '2'
|
|
memory: 5G
|
|
|
|
ac-worldserver:
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '6'
|
|
memory: 6G
|
|
ulimits:
|
|
nofile:
|
|
soft: 65536
|
|
hard: 65536
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "100m"
|
|
max-file: "5"
|
|
|
|
ac-authserver:
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '1'
|
|
memory: 512M
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "50m"
|
|
max-file: "3"
|