Downloads and runs a gtnh nightly server and an sftp service alongside it
442
given this example compose.yaml
services:
"exampleService":
image: frostyfire1/nightly-server-deployer:latest
environment:
GH: /run/secrets/githubToken
SSH_KEY: /run/secrets/sshKey
VERSION: "1024"
FTP_USER: "console1024"
volumes:
- /var/lib/docker/volumes/minecraft_servers/console1024:/server/data
secrets:
- githubToken
- sshKey
stdin_open: true
tty: true
ports:
- "25565:25565"
- "2222:22"
restart: unless-stopped
secrets:
githubToken:
file: ./secret.txt
sshKey:
file: ./ftp_key.pub
volumes:
minecraft_servers:
running docker compose up -d exampleService will activate a container that tries to look for the nightly specified in the VERSION environment variable. If an artifact associated with said nightly is found and the attached volume does not have a server under /server/VERSION it will download and extract both zip files. It will then add eula=true to eula.txt and run startserver-java9.sh and an sshd server. The container will create a console1024 user under which you can connect to sftp on the 2222 port.
Requires a github access token to be defined in secret.txt and an ssh key located under ftp_key.pub, both located in the same directory as compose.yaml
The downloading process is skipped if there's a server in that location.
To edit the container find its name with docker ps, then run docker attach [NAME] if you want to access the console, or docker exec -it [NAME] bash to access the container itself. The server should be located under /server/data
Root image is alpine:3.21.3 (tags prior to 1.1.3 use fedora:41)
Content type
Image
Digest
sha256:af5f09d53…
Size
77.4 MB
Last updated
over 1 year ago
docker pull frostyfire1/nightly-server-deployer