version: '2' services: livy: hostname: livy container_name: livy restart: always image: registry.cn-hangzhou.aliyuncs.com/sxtest/livy:idctest privileged: true ipc: host tty: true ports: - '31100-31110:31100-31110' - '8998:8998' extra_hosts: - 'cdhtestdn08.yili.com:10.116.1.78' - 'cdhtestdn07.yili.com:10.116.1.77' - 'cdhtestdn06.yili.com:10.116.1.76' - 'cdhtestdn05.yili.com:10.116.1.75' - 'cdhtestdn04.yili.com:10.116.1.74' - 'cdhtestdn03.yili.com:10.116.1.73' - 'cdhtestdn02.yili.com:10.116.1.72' - 'cdhtestdn01.yili.com:10.116.1.71' - 'cdhtestnm01.yili.com:10.119.14.67' - 'cdhtestnm02.yili.com:10.119.14.68' environment: LIVY_SERVER_JAVA_OPTS: '-Dlivy.rsc.launcher.address=10.138.143.16' # volumes: # - ./:/workspace