aot-wine-x11-novnc-docker/docker-compose.yaml
Skylar Sadlier ea006568e2 - cpulimit now reapplies when aot process restarts
- reduce resolution to 640x480 (to reduce CPU usage)
- renamed restart-aot-crash.sh to aot-monitor.sh
- added new env variable RESOLUTION for setting x11 and AgeOfTime game resolution on container startup (so it's easy to change)
- updated readme
2024-03-10 21:46:24 -06:00

26 lines
714 B
YAML

services:
aotbot:
build: .
ports:
- "8080:8080"
environment:
# limit cpu usage to 50% of a single core
AOT_CPU_LIMIT: 0
# sets the resolution of x11
# on container startup this is parsed into
# AgeOfTime's client/prefs.cs file to match
# good resolution options:
# - 640x480x24
# - 1024x768x24
RESOLUTION: 640x480x24
# uncomment if you want to volume mount AgeOfTime
# volumes:
# - '/path/on/host/AgeOfTime:/root/prefix32/drive_c/Program Files (x86)/AgeOfTime'
deploy:
# resources:
# limits:
# cpus: '0.50'
# memory: 512M
# reservations:
# cpus: '0.25'
# memory: 512M