r15ch13 / arkcluster

ARK: Survival Evolved as Docker Cluster
https://hub.docker.com/r/r15ch13/arkcluster
MIT License
30 stars 17 forks source link

Sorry to be that guy, but #12

Open Solamain opened 11 months ago

Solamain commented 11 months ago

I am feeling completely lost here. Do I change the variables to put the ini files outside of the container? How do I use the server manager? Where in the world IS Carmen Sandiego? Please, someone help. Treat me like a braindead 10 year old and walk me through what needs to be done. I know much of it already, but this way would ensure I do not miss anything stupid.

aciddensity commented 11 months ago

Something that tripped me up at first was not realizing that the GAME_USERSETTINGS_INI_PATH and GAME_INI_PATH are from the perspective of the container. What I mean by that is, the path will be what the container itself sees and not what your host sees. In the example presented in the README we have the following values:

  GAME_USERSETTINGS_INI_PATH: "/cluster/myclusterid.GameUserSettings.ini"
  GAME_INI_PATH: "/cluster/myclusterid.Game.ini"

So if you were inside the container you would see a /cluster folder that contained the files myclusterid.GameUserSettings.ini and myclusterid.Game.ini.

The /cluster folder is mapped to the docker volume "cluster" at the bottom of the example:

    volumes:
      - data_island:/ark
      - cluster:/cluster

Now I'm not very experienced or confident in my understanding of docker volumes myself, as a result I almost always will do volume mapping to a folder on my host instead. In my case here is what I use in the "volumes" section:

volumes: 
  - /opt/docker/docker-ark/ark:/ark
  - /opt/docker/docker-ark/cluster:/cluster

On my host I would now place the myclusterid.GameUserSettings.ini and myclusterid.Game.ini files inside /opt/docker/docker-ark/cluster/. The Ark container will now see those files in the /cluster folder. When the server boots, the Ark Manager tool will be given the paths for those config files and will copy them to the correct location for the server to use.

Hopefully this helps you get started!