version: '2' services: che-server: image: eclipse/che-server:latest container_name: che environment: - CHE_HOST=${HOST_IP} - CHE_USER=0:0 labels: io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE} ports: - "8080:8080" restart: on-failure volumes: - /var/run/docker.sock:/var/run/docker.sock - ${DATA_VOLUME}:/data:nocopy - ${REPO_VOLUME}:/repo:nocopy volumes_driver: rancher-nfs