Revert "This may or may not work" (did not work)
This reverts commit 6f481d441b
.
This commit is contained in:
parent
6f481d441b
commit
3920dfa262
3 changed files with 6 additions and 9 deletions
2
.env
2
.env
|
@ -1,2 +0,0 @@
|
|||
SERVICE_NAME=mcsd
|
||||
NETWORK_NAME=mcsdnet
|
|
@ -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
|
||||
|
|
3
rcon.sh
3
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
|
||||
|
|
Loading…
Reference in a new issue