Compare commits
6 Commits
e8628649a9
...
refactor
| Author | SHA1 | Date | |
|---|---|---|---|
| 637e66ce80 | |||
| 108d01d631 | |||
| 9775ef5888 | |||
| 5c5f3e9b27 | |||
| 3cd2a5ffd2 | |||
| ce10a3ba1a |
12
Dockerfile
12
Dockerfile
@@ -12,11 +12,11 @@ RUN mkdir -p /var/vintagestory
|
||||
|
||||
RUN chown -R vintagestory:vintagestory /var/vintagestory
|
||||
|
||||
RUN mkdir -p /home/vintagestory/server /home/vintagestory/install
|
||||
RUN mkdir -p /home/vintagestory/server
|
||||
|
||||
COPY ./startup.sh /home/vintagestory/.
|
||||
COPY ./startup.sh /home/vintagestory/server/.
|
||||
|
||||
RUN chmod +x /home/vintagestory/startup.sh
|
||||
RUN chmod +x /home/vintagestory/server/startup.sh
|
||||
|
||||
RUN chown -R vintagestory /home/vintagestory
|
||||
|
||||
@@ -34,9 +34,7 @@ RUN ./dotnet-install.sh --channel 7.0 --runtime dotnet
|
||||
|
||||
RUN rm dotnet-install.sh
|
||||
|
||||
RUN chmod -R 700 /home/vintagestory/server /home/vintagestory/install
|
||||
|
||||
WORKDIR /home/vintagestory/install
|
||||
WORKDIR /home/vintagestory/server
|
||||
|
||||
RUN wget "https://cdn.vintagestory.at/gamefiles/stable/vs_server_linux-x64_${VERSION}.tar.gz"
|
||||
|
||||
@@ -46,8 +44,6 @@ RUN rm "vs_server_linux-x64_${VERSION}.tar.gz"
|
||||
|
||||
RUN chmod +x server.sh
|
||||
|
||||
WORKDIR /home/vintagestory/
|
||||
|
||||
ENV HOME=/home/vintagestory
|
||||
|
||||
ENV DOTNET_ROOT=$HOME/.dotnet
|
||||
|
||||
46
README.md
46
README.md
@@ -1,3 +1,47 @@
|
||||
# VintageStory Docker Container
|
||||
|
||||
this is a simple Docker Container for running a VintageStory server on amd64
|
||||
this is a simple container for running a VintageStory server on amd64/linux system.
|
||||
|
||||
# Usage
|
||||
|
||||
```
|
||||
# clone the repo
|
||||
git clone https://git.protron.dev/Doc/vintagecontainer.git
|
||||
|
||||
# cd into the directory
|
||||
cd vintavintagecontainer
|
||||
|
||||
# start the container
|
||||
sudo docker compose up -d
|
||||
```
|
||||
|
||||
You can adjust and add stuff by editing the docker-compose.yml file.
|
||||
|
||||
The data directory inside the vintagecontainer folder is were all your server/game data is located.
|
||||
|
||||
# Build yourself or different Version
|
||||
If you want to build the image yourself or you need a different server version, you can do this by:
|
||||
|
||||
```
|
||||
# cloning the repo
|
||||
git clone https://git.protron.dev/Doc/vintagecontainer.git
|
||||
|
||||
# cd into the directory
|
||||
cd vintagecontainer
|
||||
|
||||
# edting the Dockefile
|
||||
vim Dockerfile
|
||||
```
|
||||
|
||||
To change the server version, edit the VERSION ARG:
|
||||
|
||||
Example:
|
||||
```
|
||||
ARG VERSION="1.19.8" ==> VERSION="1.18.8"
|
||||
```
|
||||
|
||||
And than build the image with
|
||||
|
||||
```
|
||||
sudo docker build -t {USERNAME}/{IMAGENAME} .
|
||||
```
|
||||
@@ -1,10 +1,9 @@
|
||||
services:
|
||||
vintageserver:
|
||||
container_name: vintageserver
|
||||
image: 'git.protron.dev/doc/vintagecontainer:1.2'
|
||||
image: 'git.protron.dev/doc/vintagecontainer:1.3'
|
||||
user: "${UID}:${GID}"
|
||||
ports:
|
||||
- '42420:42420'
|
||||
volumes:
|
||||
- ./server:/home/vintagestory/server
|
||||
- ./data:/var/vintagestory/data
|
||||
@@ -1,7 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mv /home/vintagestory/install/* /home/vintagestory/server/.
|
||||
|
||||
./server/server.sh start
|
||||
./server.sh start
|
||||
|
||||
tail -f /var/vintagestory/data/Logs/server-main.txt
|
||||
Reference in New Issue
Block a user