blob: 548ccde092f41e1726d198e4d649c624cf99f130 [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:
Matteo Scandolo84833a22017-12-12 13:26:36 -080017 - xos_redis
18 links:
Matteo Scandolo84833a22017-12-12 13:26:36 -080019 - xos_redis:redis
20 volumes:
21 - {{ head_cord_profile_dir }}/xos_config_synchronizer.yaml:/opt/xos/xos_config.yaml:ro
22 - {{ head_cord_profile_dir }}/node_key:/opt/cord_profile/node_key:ro
23 - {{ head_credentials_dir }}:/opt/xos/services/{{ item.name }}/credentials:ro
24 - {{ head_cord_profile_dir }}/im_cert_chain.pem:/usr/local/share/ca-certificates/local_certs.crt:ro
25 - {{ head_cord_profile_dir }}/key_import/{{ item.keypair }}:/opt/xos/services/{{ item.name }}/keys/{{ item.keypair }}:ro
26 logging:
27 driver: "json-file"
28 options:
29 max-size: "1000k"
30 max-file: "5"
Matteo Scandolo84833a22017-12-12 13:26:36 -080031 restart: unless-stopped