Adds DockerCompose for Local Server
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@
|
|||||||
|
|
||||||
# Screeps Config
|
# Screeps Config
|
||||||
.screeps.yml
|
.screeps.yml
|
||||||
|
docker/.env
|
||||||
|
|||||||
1
docker/.env.sample
Normal file
1
docker/.env.sample
Normal file
@@ -0,0 +1 @@
|
|||||||
|
STEAM_KEY="<https://steamcommunity.com/dev/apikey>"
|
||||||
12
docker/config.yml
Normal file
12
docker/config.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
mods:
|
||||||
|
- screepsmod-auth
|
||||||
|
- screepsmod-admin-utils
|
||||||
|
- screepsmod-mongo
|
||||||
|
bots:
|
||||||
|
simplebot: screepsbot-zeswarm
|
||||||
|
|
||||||
|
launcherOptions:
|
||||||
|
# If set, automatically ensures all mods are updated
|
||||||
|
autoUpdate: false
|
||||||
|
# If set, forward console messages to terminal
|
||||||
|
logConsole: false
|
||||||
38
docker/docker-compose.yml
Normal file
38
docker/docker-compose.yml
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
services:
|
||||||
|
mongo:
|
||||||
|
container_name: screeps-mongo
|
||||||
|
image: mongo:4.4.18
|
||||||
|
volumes:
|
||||||
|
- mongo-data:/data/db
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
redis:
|
||||||
|
container_name: screeps-redis
|
||||||
|
image: redis:7
|
||||||
|
volumes:
|
||||||
|
- redis-data:/data
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
screeps:
|
||||||
|
container_name: screeps-server
|
||||||
|
image: ghcr.io/jomik/screeps-server:edge
|
||||||
|
depends_on:
|
||||||
|
- mongo
|
||||||
|
- redis
|
||||||
|
ports:
|
||||||
|
- 21025:21025
|
||||||
|
environment:
|
||||||
|
MONGO_HOST: mongo
|
||||||
|
REDIS_HOST: redis
|
||||||
|
STEAM_KEY: ${STEAM_KEY:?"Missing steam key"}
|
||||||
|
volumes:
|
||||||
|
- ./config.yml:/screeps/config.yml
|
||||||
|
- screeps-data:/data
|
||||||
|
- screeps-mods:/screeps/mods
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
screeps-data:
|
||||||
|
screeps-mods:
|
||||||
|
redis-data:
|
||||||
|
mongo-data:
|
||||||
@@ -6,6 +6,7 @@
|
|||||||
"build": "node esbuild.config.mjs",
|
"build": "node esbuild.config.mjs",
|
||||||
"push:main": "npm run build && screeps-api --server main upload dist/*.js",
|
"push:main": "npm run build && screeps-api --server main upload dist/*.js",
|
||||||
"push:sim": "npm run build && screeps-api --server main upload --branch sim dist/*.js",
|
"push:sim": "npm run build && screeps-api --server main upload --branch sim dist/*.js",
|
||||||
|
"push:local": "npm run build && screeps-api --server local upload dist/*.js",
|
||||||
"format": "prettier --config .prettierrc 'src/**/*.ts' --write && eslint --fix src/"
|
"format": "prettier --config .prettierrc 'src/**/*.ts' --write && eslint --fix src/"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user