Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
Adapt docker-compose from #5
Browse files Browse the repository at this point in the history
  • Loading branch information
Hetsh committed Mar 21, 2021
1 parent 1f153ca commit ef2fac1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ Because this is a template unit file, you can easily change the world:
systemctl enable stationeers@<world> --now
```

## Docker-Compose
An examplary [docker-compose file](https://github.com/Hetsh/docker-stationeers/blob/master/docker-compose.yml) was adapted from [#5](https://github.com/Hetsh/docker-stationeers/pull/5).
It is intended to get you up and running quickly with docker-compose. It also showcases some basic configuration changes.

## Fork Me!
This is an open project (visit [GitHub](https://github.com/Hetsh/docker-stationeers)).
Please feel free to ask questions, file an issue or contribute to it.
17 changes: 17 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: "3.3"
services:
stationeers:
image: hetsh/stationeers
ports:
- "27500:27500/udp" # Game Port (required) - client-server communication
- "27015:27015/udp" # Steam Port (recommended - required for listing in server browser)
# - "27500:27500/tcp" # RCON Port (optional) - server control via network
environment:
- WORLD_TYPE=Mars # Play on Mars - default is Moon
- WORLD_NAME=Mars # Rename save - default is Base
# - SAVE_INTERVAL=120 # Increase save frequency - default is 300 seconds
# - CLEAR_INTERVAL=-1 # Disable idle player clearing - default is 60 seconds
volumes:
- "/path/to/storage/logs:/var/log/stationeers" # Save game logs
- "/path/to/storage/data:/stationeers" # Persistent storage for saves, default.ini, ...
- "/etc/localtime:/etc/localtime:ro" # Correct time for logs and more

0 comments on commit ef2fac1

Please sign in to comment.