Unity-Technologies/unity-cache-server on Docker container. Supporting versions later than 6.x
It is recommended to use Accelarator in Unity version 2019.3 and later. That Docker image is provided by Unity Technologies.
docker run -d -p 8126:8126 -v $(pwd):/srv/unity/cache --name unity-cache-server ghcr.io/windyakin/docker-unity-cache-server
Recommend volume setting position is /srv/unity/cache
.
Variable name | Command | Description | Default value |
---|---|---|---|
CACHE_PATH |
--cache-path |
Cache files position in container | /srv/unity/cache |
LOG_LEVEL |
--log-level |
Output log level | 3 (info) |
Variable name | Command | Description | Default value |
---|---|---|---|
MAX_CACHE_SIZE |
--max-cache-size |
Max cache size (bytes) | 53687091200 (50GiB) |
EXPIRE_TIME_SPAN |
--expire-time-span |
Cache expire time (ASP.NET style time) | 90.00:00:00 (90 days) |
DAEMON_INTERVAL |
--daemon |
Daemon working interval (seconds) | 86400 (24 hours) |
Build with parameters.
docker build --tag unity-cache-server:6.1.0 --build-arg CACHE_SERVER_VERSION=6.1.0 .
Old cache server (enclosed Unity version 2017.1.0 - 2017.3.1) moved "v5/" directory
- windyakin (Twitter)