This gist provides a minimal docker-compose.yml
for setting up a Grasscutter instance on x86_64 with Docker Compose.
Quick start:
$ mkdir grasscutter && cd grasscutter
$ git clone https://github.com/Koko-boya/Grasscutter_Resources.git
$ nano sample_config.json && mv sample_config.json config.json
$ docker compose up -d
mitmproxy
is not included.
If deployed on a public server, modify the PUBLIC_IP
in config.json
to match your configuration.
The Grasscutter Container ID can be acquired with docker ps
; attach to the console with docker attach SOME_CONTAINER_ID
.
Stop the service with docker compose down
; restart with docker compose restart
.
The Dockerfile
provided in this gist simply builds a Grasscutter jar from the development
branch. The image is NOT regularly updated.