diff --git a/scripts/docker-compose.yaml b/scripts/docker-compose.yaml new file mode 100644 index 0000000..fe71f7f --- /dev/null +++ b/scripts/docker-compose.yaml @@ -0,0 +1,32 @@ +version: '2.4' + +services: + asaserver: + build: . + image: asa_server:latest + container_name: asa_Server + restart: unless-stopped + environment: + - PUID=1001 + - PGID=1001 + - BATTLEEYE=TRUE + - RCON_ENABLED=TRUE + - MAP_NAME=TheIsland + - SESSION_NAME=POK-PVP-Community-ARK-Server-NO-WIPE + - SERVER_ADMIN_PASSWORD=Korneya512! + - ASA_PORT=8777 + - RCON_PORT=27020 + - MAX_PLAYERS=70 + - CLUSTER_ID=kny + - MOD_IDS= + - CUSTOM_SERVER_ARGS= + ports: + - "8777:8777/tcp" + - "8777:8777/udp" + volumes: + - "/home/factorioserver/ASA/ARK_Servers/ASA:/usr/games/.wine/drive_c/POK/Steam/steamapps/common/ARK Survival Ascended Dedicated Server/ShooterGame" + - "/home/factorioserver/ASA/ARK_Servers/ARK Survival Ascended Dedicated Server:/usr/games/.wine/drive_c/POK/Steam/steamapps/common/ARK Survival Ascended Dedicated Server" + - "/home/factorioserver/ASA_Cluster/Cluster:/usr/games/.wine/drive_c/POK/Steam/steamapps/common/ShooterGame" + cpuset: 8-11 # Pinning CPUs to threads 10-12 + memswap_limit: 16G + mem_limit: 12G # Setting memory limit to 12GB diff --git a/scripts/launch_ASA.sh b/scripts/launch_ASA.sh index 1dce032..65a05e7 100644 --- a/scripts/launch_ASA.sh +++ b/scripts/launch_ASA.sh @@ -176,9 +176,11 @@ start_server() { battleye_arg="-NoBattlEye" fi - # Set RCON arguments if enabled + # Set RCON arguments based on RCON_ENABLED environment variable if [ "$RCON_ENABLED" = "TRUE" ]; then - rcon_args="?RCONPort=${RCON_PORT}" + rcon_args="?RCONEnabled=True?RCONPort=${RCON_PORT}" + elif [ "$RCON_ENABLED" = "FALSE" ]; then + rcon_args="?RCONEnabled=False?" fi if [ -n "$CUSTOM_SERVER_ARGS" ]; then