diff --git a/Dockerfile b/Dockerfile index f13eaa1c2..6c7b5551b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,3 +29,4 @@ WORKDIR /pumpkin ENV RUST_BACKTRACE=1 EXPOSE 25565 ENTRYPOINT [ "/bin/pumpkin" ] +HEALTHCHECK CMD nc -z 127.0.0.1 25565 || exit 1 diff --git a/docker-compose.yml b/docker-compose.yml index 418bdac0c..fc2119d4d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,17 @@ services: pumpkin: + # Make sure to change the tag to the pumpkin version you want to use. + # https://github.com/Pumpkin-MC/Pumpkin/pkgs/container/pumpkin/versions?filters%5Bversion_type%5D=tagged + #image: ghcr.io/pumpkin-mc/pumpkin:master build: . ports: - "25565:25565" volumes: - ./data:/pumpkin + # Use the following, if you want to make your config immutable + #- ./config:/pumpkin/config:ro stdin_open: true tty: true + cap_drop: + - ALL + read_only: true