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 - XMX ports: - '$PORT:25565' volumes: - '$CONFIG_DIR:/mc/config' - '$MODS_DIR:/mc/config/mods' - '$WORLDS_DIR:/mc/worlds'