blob: 231da65acdab674ade540818e63a8e304f2bb4dd [file] [log] [blame]
Matteo Scandolo84833a22017-12-12 13:26:36 -08001# NOTE: this template is used by the xos-services-up in platform-install
2
3version: '2'
4
5networks:
6 xos:
7 external: true
8
9services:
10 exampleservice-synchronizer:
11 image: {{ pull_docker_registry }}xosproject/{{ item.name }}-synchronizer:{{ pull_docker_tag }}
12 networks:
13{% for network in xos_docker_networks %}
14 - {{ network }}
15{% endfor %}
16 depends_on:
17 - registrator
18 - xos_redis
19 links:
20 - consul:consul
21 - xos_redis:redis
22 volumes:
23 - {{ head_cord_profile_dir }}/xos_config_synchronizer.yaml:/opt/xos/xos_config.yaml:ro
24 - {{ head_cord_profile_dir }}/node_key:/opt/cord_profile/node_key:ro
25 - {{ head_credentials_dir }}:/opt/xos/services/{{ item.name }}/credentials:ro
26 - {{ head_cord_profile_dir }}/im_cert_chain.pem:/usr/local/share/ca-certificates/local_certs.crt:ro
27 - {{ head_cord_profile_dir }}/key_import/{{ item.keypair }}:/opt/xos/services/{{ item.name }}/keys/{{ item.keypair }}:ro
28 logging:
29 driver: "json-file"
30 options:
31 max-size: "1000k"
32 max-file: "5"
33 environment:
34 SERVICE_NAME: "xos-{{ item.name }}-synchronizer"
35 restart: unless-stopped