mornedhels / enshrouded-server

Enshrouded Dedicated Server with autoupdate (supervisord)
MIT License
120 stars 8 forks source link

Question about config folder #57

Closed Overactt closed 3 months ago

Overactt commented 4 months ago

Is there an existing issue for this?

Question

Hey, 1st time making a dedicated server with docker and new to docker as well.

I'm trying to figure out where the config file of the server are going ? Here's my docker compose i used on portainer :

version: "3"
services:
  enshrouded:
    image: mornedhels/enshrouded-server:latest
    container_name: enshrouded
    hostname: enshrouded
    restart: unless-stopped
    stop_grace_period: 90s
    ports:
      - "15636-15637:15636-15637/udp"
    volumes:
      - /mnt/server/enshrouded:/mnt/server/enshrouded
    environment:
      - SERVER_NAME=Enshrouded Server
      - SERVER_PASSWORD=secret
      - UPDATE_CRON=*/30 * * * *
      - PUID=4711
      - PGID=4711

I got a mountpoint with my ZFS in /mnt, that is why i would have expect to find config here but no, it just create the folder empty. image

Server is working fine but i just can't see where the files of the server are

Thanks!

cp-fabian-pittroff commented 4 months ago

Hey @Overactt,

the volume targets the wrong location inside of the container. The right part (container side) has to be /opt/enshrouded.

so just change:

...
volumes:
  - /mnt/server/enshrouded:/opt/enshrouded
...

Your current game and savefiles will not carry over. So If you need them, you have to copy them out of the docker container before changing or restarting it.

And one more thing, enshrouded got an update recently, so you don't need the gameport anymore (just remove the first port 15636). I'm preparing an update to also handle serverroles with environment vars. But I need a little more time to test it properly.

For now, you can just update the enshrouded_server.json inside of the mount point.

cp-fabian-pittroff commented 3 months ago

cleanup - closing due to inactivity. If you have any further questions or problems, feel free to reopen.