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