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