Revert "This may or may not work" (did not work)

This reverts commit 6f481d441b.
This commit is contained in:
JeremyStar™ 2024-04-20 16:57:29 +02:00
parent 6f481d441b
commit 3920dfa262
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
3 changed files with 6 additions and 9 deletions

2
.env
View file

@ -1,2 +0,0 @@
SERVICE_NAME=mcsd
NETWORK_NAME=mcsdnet

View file

@ -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

View file

@ -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