services:
  minetest-server:
    image: lscr.io/linuxserver/minetest:latest
    container_name: minetest-server
    deploy:
      restart_policy:
        condition: on-failure
        delay: 5s
        max_attempts: 3
        window: 120s
      update_config:
        parallelism: 2
    environment:
      PUID: '1000'
      TZ: Europe/Moscow
      PGID: '1000'
      CLI_ARGS: '--gameid Minetest --port 30000'
    ports:
      - 30000:30000/udp
    volumes:
      - ${DATA}:/config/.minetest/