Skip to content

Commit

Permalink
Fix Rcon
Browse files Browse the repository at this point in the history
  • Loading branch information
Acekorneya committed Nov 18, 2023
1 parent 6abf87d commit 34a5127
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
32 changes: 32 additions & 0 deletions scripts/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 4 additions & 2 deletions scripts/launch_ASA.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34a5127

Please sign in to comment.