thijsvanloef / palworld-server-docker

A Docker Container to easily run a Palworld dedicated server.
https://hub.docker.com/r/thijsvanloef/palworld-server-docker
MIT License
2.43k stars 295 forks source link

Error in documentation for starting docker #499

Closed T-h-o-r-p-e closed 7 months ago

T-h-o-r-p-e commented 7 months ago

In documentation it is said to use docker compose up -d. Howerver, it should be docker-compose up -d

To Reproduce

Steps to reproduce the behaviour:

  1. following the documentation as is currently written;
  2. typing docker compose up -d
  3. press enter
  4. get error unknown shorthand flag: 'd' in -d

Actual behaviour

unknown shorthand flag: 'd' in -d

OS information (IMPORTANT)

Hardware information (IMPORTANT)

N/A

docker-compose.yml contents (IMPORTANT)

---
services:
  palworld:
    image: thijsvanloef/palworld-server-docker:latest
    restart: unless-stopped
    container_name: palworld-server
    stop_grace_period: 30s  # Set to however long you are willing to wait for the container to gracefully stop
    ports:
      - 8211:8211/udp
      - 27015:27015/udp  # Required if you want your server to show up in the community servers tab
    environment:
      PUID: 1000
      PGID: 1000
      PORT: 8211  # Optional but recommended
      PLAYERS: 32  # Optional but recommended
      SERVER_PASSWORD: ""  # Optional but recommended
      MULTITHREADING: "true"
      RCON_ENABLED: "true"
      RCON_PORT: 25575
      TZ: "UTC"
      ADMIN_PASSWORD: ""
      COMMUNITY: "false"  # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD!
      SERVER_NAME: "Arm-Test"
      SERVER_DESCRIPTION: "Work God Dammit"
      EXP_RATE: 1.5
      PAL_CAPTURE_RATE: 1.5
      PAL_SPAWN_NUM_RATE: 1.5
      PLAYER_AUTO_HP_REGEN_RATE: 1.25
      PLAYER_AUTO_HP_REGEN_RATE_IN_SLEEP: 5
      PAL_AUTO_HP_REGEN_RATE: 1.25
      PAL_AUTO_HP_REGEN_RATE_IN_SLEEP: 5
      BUILD_OBJECT_DAMAGE_RATE: 0.25
      BUILD_OBJECT_DETERIORATION_DAMAGE_RATE: 0
      COLLECTION_DROP_RATE: 1.5
      COLLECTION_OBJECT_RESPAWN_SPEED_RATE: 0.5
      ENEMY_DROP_ITEM_RATE: 1.5
      DEATH_PENALTY: 1
      BASE_CAMP_WORKER_MAX_NUM: 20
      GUILD_PLAYER_MAX_NUM: 32
      PAL_EGG_DEFAULT_HATCHING_TIME: 0.5
      WORK_SPEED_RATE: 2
      ENABLE_NON_LOGIN_PENALTY: "false"
      COOP_PLAYER_MAX_NUM: 32
    volumes:
      - ./palworld:/palworld/

Bug Report Checklist

thijsvanloef commented 7 months ago

Hi @T-h-o-r-p-e It seems like you are using compose v1 (docker-compose). This version of docker compose has been deprecated. I would suggest updating your docker version and using Compose V2: https://docs.docker.com/compose/migrate/