Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alinanova21/docker-screeps-server
https://github.com/alinanova21/docker-screeps-server
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/alinanova21/docker-screeps-server
- Owner: AlinaNova21
- License: mit
- Created: 2016-11-09T15:33:54.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-26T13:53:23.000Z (almost 2 years ago)
- Last Synced: 2024-05-02T01:31:40.162Z (8 months ago)
- Language: Shell
- Size: 40 KB
- Stars: 75
- Watchers: 7
- Forks: 41
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Screeps Server
# OUTDATED: [screeps-launcher](https://github.com/ags131/screeps-launcher) is now the recommended way of running a server
There are two different type how to start a screeps server.
* [without a world](#create-the-world)
* [with a world already created](#running-the-server)## Create the world
If you do not have an existing server directory, just start the Docker container with the command line argument `init`, and everything gets done for you.```bash
docker run -it --rm -v $PWD:/screeps quay.io/ags131/screeps-server init
```
Now it's all set to run the Screeps server.## Running the server
If you have already a server directory (from previous installations) follow the steps below.1. Make sure you are in the server directory
2. Run the server
```bash
docker run -d --name screeps-server -v $PWD:/screeps -p 21025:21025 quay.io/ags131/screeps-server
```## Managing the server
### Mods
Mods can be installed by running:
```docker run --rm -v $PWD:/screeps quay.io/ags131/screeps-server yarn add screepsmod-auth```### CLI
The CLI can be accessed by running:
```docker exec -it screeps-server npx screeps cli```## Stopping and starting the server
Stop:
```docker stop screeps-server```
Start:
```docker start screeps-server```## Updating
1. Stop the server:
```docker stop screeps-server```
2. Remove the server:
```docker rm screeps-server```
3. Follow [Running the server](#running-the-server)## Launching a specific module
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 quay.io/ags131/screeps-server@beta screeps-backend```