diff --git a/README.md b/README.md new file mode 100644 index 0000000..0f9aab8 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ + +# Harambee dedicated servers for games set-up +This repository is a set-up for several dedicated servers for the online enjoyment of members of Harambee. It consists of a docker-compose stack that is meant to be deployed almost as-is. + +## Currently included (15-02-2020) +- [Valheim](https://github.com/lloesche/valheim-server-docker) + +## How to set up yourself? +1. Clone this repository +2. Copy `dist.env` to `.env` +3. Change the environment variables in `.env` to your likings +4. `$ docker-compose up -d` +5. Watch magic happen. +6. > You're a hacker Harry! + +## Objectives and principles +- Game data is stored in the `./data/` directory, but can be changed to your liking in the environment variables +- The containers should be kept up-to-date automatically, so when a new version of the game comes out, the server downloads this version and restarts the container diff --git a/docker-compose.yml b/docker-compose.yml index 4d4d6d1..8531f8d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,4 +17,4 @@ services: ports: - "2456-2458:2456-2458/udp" volumes: - - "./data/valheim:/config" \ No newline at end of file + - "${DATA_DIR}/valheim:/config" \ No newline at end of file diff --git a/env.dist b/env.dist index 407b52a..bf708bc 100644 --- a/env.dist +++ b/env.dist @@ -1,5 +1,6 @@ # Base config TZ=Europe/Amsterdam +DATA_DIR=./data # # Valheim