version: '3.2'

services:
  minecraft:
    ports:
      - "25565:25565"
    volumes:
      - data:/data
    env_file:
      - .env
    image: itzg/minecraft-server
    restart: always

volumes:
  data: