Since there is no official documentation on how to use the docker image provided at strangeloopgames/eco-game-server I will go over some details that you have to consider when running the docker container.
First of all I find it easiest to download the server locally and create all configuration files using the UI. It is also necessary to put the files into the Mods directory since I will be exposing it to the host file system.
- Go to the strangeloop website and login to your account. If you did not link your steam account you should do that now so you can download the server files.
- Put the files into a folder in a convenient location (Will only be used temporarily)
- Run the server with the appropriate means (EcoServer.exe or EcoServer.sh)
- Configure your server like you want it using the UI
- Stop the server
- Copy the Configs and Mods folder to the location you want to be using for your server on your host file system (e.g.: /opt/eco-server)
- Remove all locally downloaded eco files
- Run the docker container using
docker run -d \
--name eco \
-p 3000:3000/udp \
-p 3001:3001/tcp \
-v /opt/eco-server/Configs:/app/Configs \
-v /opt/eco-server/Storage:/app/Storage \
-v /opt/eco-server/Mods:/app/Mods \
strangeloopgames/eco-game-server:latest
version: '3.7'
services:
eco:
image: strangeloopgames/eco-game-server:latest
container_name: eco
ports:
- 3000:3000/udp
- 3001:3001/tcp
volumes:
- /opt/eco-server/Configs:/app/Configs
- /opt/eco-server/Storage:/app/Storage
- /opt/eco-server/Mods:/app/Mods
restart: unless-stopped
- Wait for the server to generate the world (might take a few minutes) and connect afterwards.
The website URL has changed.
https://play.eco/