- If you have an existing server directory, cd into it and skip to first start
- Create an empty folder and enter it
- Init your server directory:
docker run --rm -it -v $PWD:/screeps ags131/screeps-server screeps init
- Make sure you are in the server directory
- Start the Server:
docker run -d --name screeps-server -v $PWD:/screeps -p 21025:21025 ags131/screeps-server
- Done! Your server should now be accessible.
Mods can be installed by running
docker run --rm -v $PWD:/screeps ags131/screeps-server yarn add screepsmod-auth
Stop:
docker stop screeps-server
Start:
docker start screeps-server
- Stop the server:
docker stop screeps-server
- Remove the server:
docker rm screeps-server
- Follow instructions from First Start above
For more advanced usage and more control over scaling, you can launch individual modules. Note that each module may have different environment variables needed to run.
docker run -d --name screeps-server-backend -v $PWD:/screeps ags131/screeps-server screeps-backend