This repository has been archived on 2021-04-13. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
hbp-sp8-mip-federation/docker-compose-manager.yml

80 lines
2.6 KiB
YAML

# 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.2'
networks:
net-federation:
external:
name: mip-federation
services:
exareme-keystore:
image: ${CONSUL_IMAGE}:${CONSUL_VERSION}
command:
- -server
- -bootstrap
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints:
- node.role == manager # Ensures we only start on manager nodes
- node.labels.name == ${FEDERATION_NODE}
networks:
- "net-federation" # Connect the docker container to the global network
exareme-manager:
image: ${EXAREME_IMAGE}:${EXAREME_VERSION}
environment:
- CONSULURL=${EXAREME_KEYSTORE}
- MASTER_FLAG=master
- NODE_NAME=${FEDERATION_NODE}
- EXA_WORKERS_WAIT=${EXAREME_WORKERS_WAIT} # Wait for N workers
- 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}
depends_on:
- exareme-keystore
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints:
- node.role == manager # Ensures we only start on manager nodes
- node.labels.name == ${FEDERATION_NODE}
ports:
- target: 9090 # So that we can access the Exareme REST API / interface
published: 9090
protocol: tcp
mode: host
networks:
- "net-federation" # Connect the docker container to the global network