Adds DockerCompose for Local Server

This commit is contained in:
2025-07-16 13:05:19 -03:00
parent f8bb65c0f4
commit a4b8081006
5 changed files with 54 additions and 1 deletions

1
docker/.env.sample Normal file
View File

@@ -0,0 +1 @@
STEAM_KEY="<https://steamcommunity.com/dev/apikey>"

12
docker/config.yml Normal file
View 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
View 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: