services:
  legacy:
    image: itzg/minecraft-server
    restart: unless-stopped
    environment:
      UID: 1337
      GID: 1337
      EULA: "TRUE"
    ports:
      - 25565:25565
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./mods:/mods
      - ./config/legacy:/config
      - ./data/legacy:/data
      - ./legacy.properties:/data/server.properties
  bedrock:
    image: itzg/minecraft-bedrock-server
    restart: unless-stopped
    environment:
      UID: 1337
      GID: 1337
      EULA: "TRUE"
    ports:
      - 19132:19132/udp
      - 19133:19133/udp
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./data/bedrock:/data
      - ./bedrock.properties:/data/server.properties