services: minecraftTest: image: git.jeremymcclure.com/jeremy/dockercraft:latest container_name: dockercraft stdin_open: true tty: true environment: - MC_LOADER=forge - MC_VERSION=1.21.4 - JAVA_VERSION=temurin@21 - JAR=server.jar - MEM=2G - ADD_ARGS= - RESTART=true build: dockerfile: Dockerfile context: . volumes: - ./data:/data deploy: resources: limits: memory: 2G restart: unless-stopped