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:
|
services:
|
||||||
${SERVICE_NAME}:
|
mcsd:
|
||||||
build: .
|
build: .
|
||||||
container_name: ${SERVICE_NAME}
|
container_name: mcsd
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
stop_grace_period: 120s
|
stop_grace_period: 120s
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -11,9 +11,9 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 25565:25565
|
- 25565:25565
|
||||||
networks:
|
networks:
|
||||||
- ${NETWORK_NAME}
|
- mcsdnet
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
${NETWORK_NAME}:
|
mcsdnet:
|
||||||
name: ${NETWORK_NAME}
|
name: mcsdnet
|
||||||
external: false
|
external: false
|
||||||
|
|
3
rcon.sh
3
rcon.sh
|
@ -1,3 +1,2 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
source .env
|
docker compose exec -it mcsd rcon -a 127.0.0.1:25575 -p mcsdrcon
|
||||||
docker compose exec -it ${SERVICE_NAME} rcon -a 127.0.0.1:25575 -p mcsdrcon
|
|
||||||
|
|
Loading…
Reference in a new issue