From 3920dfa262a0f21b7d68184961c90e91285819b0 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sat, 20 Apr 2024 16:57:29 +0200 Subject: [PATCH] Revert "This may or may not work" (did not work) This reverts commit 6f481d441b5c056690091f611ce6d339932b0f60. --- .env | 2 -- docker-compose.yml | 10 +++++----- rcon.sh | 3 +-- 3 files changed, 6 insertions(+), 9 deletions(-) delete mode 100644 .env diff --git a/.env b/.env deleted file mode 100644 index 6deb8ba..0000000 --- a/.env +++ /dev/null @@ -1,2 +0,0 @@ -SERVICE_NAME=mcsd -NETWORK_NAME=mcsdnet diff --git a/docker-compose.yml b/docker-compose.yml index 6c7d6e0..ffb86c6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ services: - ${SERVICE_NAME}: + mcsd: build: . - container_name: ${SERVICE_NAME} + container_name: mcsd restart: unless-stopped stop_grace_period: 120s volumes: @@ -11,9 +11,9 @@ services: ports: - 25565:25565 networks: - - ${NETWORK_NAME} + - mcsdnet networks: - ${NETWORK_NAME}: - name: ${NETWORK_NAME} + mcsdnet: + name: mcsdnet external: false diff --git a/rcon.sh b/rcon.sh index 1751e25..3fa51c0 100644 --- a/rcon.sh +++ b/rcon.sh @@ -1,3 +1,2 @@ #!/bin/bash -source .env -docker compose exec -it ${SERVICE_NAME} rcon -a 127.0.0.1:25575 -p mcsdrcon +docker compose exec -it mcsd rcon -a 127.0.0.1:25575 -p mcsdrcon