Continue work on another host

This commit is contained in:
norimicry 2019-04-12 23:39:04 +02:00
parent a4412744a3
commit 979d0ed0ee
4 changed files with 28 additions and 6 deletions

View File

@ -2,13 +2,19 @@
This project aims to autostart a Stardew Valley Multiplayer Server as easy as possible.
# Setup
## Setup
```
git clone https://github.com/printfuck/stardew-multiplayer-docker
docker-compose up
```
# How it works
Intially you have to create or load a game once after first startup. After that the Autoload Mod jump starts into the previously loaded savegame everytime you rerun the container. You can also edit the config file of the Autoload Mod to archieve similar behaviour.
## How it works
The game, the modloader (SMAPI), and the "Always On" Mod is pulled from my servers to minimize version conflicts. Afterwards everything will be unpacked into the right places. In the end of the init script the game will be started inside Xvfb.
## Why Docker
This should be simple and easily deployable, so there are only a few options.

4
asound.conf Normal file
View File

@ -0,0 +1,4 @@
pcm.!default {
type plug
slave.pcm "null"
}

View File

@ -1,21 +1,23 @@
version: '3.7'
version: '2.2'
services:
valley:
build: .
ports:
- 5902:5900
- 24642:24642
- 24642:24642/udp
volumes:
- /data/valley:/data
- ./init.sh:/init.sh
# - ./asound.conf:/etc/asound.conf
- ./asound.conf:/etc/asound.conf
- ./config:/root/.config/i3/config
- /data/valley_saves:/root/.config/StardewValley/Saves/
devices:
- /dev/dsp:/dev/dsp
#- /dev/dsp:/dev/dsp
- /dev/snd:/dev/snd
entrypoint:
- /bin/sh
- /init.sh
cpus: 0.5
cpuset: '2'

10
playbook.yml Normal file
View File

@ -0,0 +1,10 @@
---
- name: Example
hosts: "all"
become: true
roles:
- role: "nickjj.docker"
tags: ["docker"]
- role "stardew"