# Copyright (c) 2016-2017 # Data Intensive Applications and Systems Labaratory (DIAS) # Ecole Polytechnique Federale de Lausanne # # All Rights Reserved. # # Permission to use, copy, modify and distribute this software and its # documentation is hereby granted, provided that both the copyright notice # and this permission notice appear in all copies of the software, derivative # works or modified versions, and any portions thereof, and that both notices # appear in supporting documentation. # # This code is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. THE AUTHORS AND ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE # DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE # USE OF THIS SOFTWARE. version: '3' networks: net-federation: external: name: mip-federation services: exareme: image: ${EXAREME_IMAGE}:${EXAREME_VERSION} environment: - CONSULURL=${EXAREME_KEYSTORE} - NODE_NAME=${FEDERATION_NODE} - RAWUSERNAME=${LDSM_USERNAME} - RAWPASSWORD=${LDSM_PASSWORD} - RAWHOST=${LDSM_HOST} - RAWPORT=${LDSM_PORT} - RAWDB=${LDSM_DB} - RAWENDPOINT=${EXAREME_LDSM_ENDPOINT} - RAWRESULTS=${EXAREME_LDSM_RESULTS} - RAWDATAKEY=${EXAREME_LDSM_DATAKEY} - MODE=${EXAREME_MODE} deploy: restart_policy: condition: on-failure delay: 5s max_attempts: 3 window: 120s placement: constraints: - node.role == worker # Ensures we only start on worker nodes - node.labels.name == ${FEDERATION_NODE} networks: - "net-federation" # Connect the docker container to the global network