add pause option

This commit is contained in:
Morgan Patterson
2022-09-02 00:32:16 -07:00
committed by GitHub
parent 2e69b8d6d1
commit c1e068be6c
5 changed files with 36 additions and 12 deletions

View File

@@ -7,7 +7,7 @@ docker-compose up
```
## Watch the magic happen
after 90 seconds of no activity the server should stop
After a configurable period of no activity the server should stop
if you generate some traffic by trying to connect to the instance or running a command like
`telnet localhost 25565`

View File

@@ -23,6 +23,9 @@ services:
restart: unless-stopped
labels:
- "lazytainer.marker=lazytainer"
- "lazytainer.sleepMethod=stop" # can be either "stop" or "pause", or left blank for stop
# using "stop" will release the memory associated with the server
# using "pause" will keep the memory allocated, however it will restart much faster
depends_on:
- lazytainer
volumes: