-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-worker.yml
53 lines (49 loc) · 1.8 KB
/
docker-compose-worker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 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