version: '2.0' services: app: build: context: . args: - 'BASE_IMAGE' - 'MC_VERSION' - 'PAPERMC_VERSION' image: 'localhost:5000/mc-papermc:${MC_VERSION}-${PAPERMC_VERSION}' restart: 'always' # Needed to interact with server console stdin_open: true tty: true environment: - 'XMS' - 'XMX' ports: - '$PORT:25565' volumes: - '$CONFIG_DIR:/app/config' - '$WORLDS_DIR:/app/worlds' # These volumes only get created if you use them in the env file volumes: config: worlds: