version: '3.5' services: fabric: build: context: . args: - 'FABRIC_VERSION=${FABRIC_VERSION}' image: 'mc-fabric-server:${FABRIC_VERSION}' restart: 'unless-stopped' stdin_open: true tty: true environment: - XMS - XMX ports: - '25565:25565' volumes: - '/data/mc/fabric/config:/mc/config' - '/data/mc/fabric/mods:/mc/config/mods' - '/data/mc/fabric/worlds:/mc/worlds'