version: "3" services: minecraft: image: "marctv/minecraft-papermc-server:latest" restart: unless-stopped container_name: "mcserver" environment: MEMORYSIZE: "1G" PAPERMC_FLAGS: "" volumes: - "./mcserver:/data:rw" ports: - "25565:25565" # The following allow `docker attach minecraft` to work stdin_open: true tty: true