From b5d7476803e0996cba991f7c6b09e51a600a1f60 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 14 Feb 2023 01:59:05 +0000 Subject: [PATCH] cant get stdin to work the way i want, so we're just gonna jankify it with a run script lmfao --- docker-compose.yaml | 6 +++--- run.sh | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100755 run.sh diff --git a/docker-compose.yaml b/docker-compose.yaml index 1efe8b7..7c061ae 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -6,12 +6,12 @@ services: build: . volumes: - - "./data:/minecraft/worlds" - - "/dev/null:/minecraft/server.jar" - - "/dev/null:/minecraft/eula.txt" + - "./data:/minecraft" ports: - "25565:25565" + stdin_open: true + tty: true restart: always diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..3e32769 --- /dev/null +++ b/run.sh @@ -0,0 +1,3 @@ +#! /bin/sh +docker compose up -d +docker attach opsig_minecraft