Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -0700 | [diff] [blame] | 1 | |
| 2 | {# |
| 3 | Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | #} |
| 17 | |
| 18 | |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 19 | version: '2' |
| 20 | |
| 21 | # XOS docker compose |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 22 | # generated by cord-profile/templates/docker-compose.yml.j2 |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 23 | |
| 24 | networks: |
| 25 | {% for network in xos_docker_networks %} |
| 26 | {{ network }}: |
| 27 | external: true |
| 28 | {% endfor %} |
| 29 | |
| 30 | services: |
Varun Belur | 8676453 | 2017-09-08 18:39:58 -0600 | [diff] [blame] | 31 | {% if use_elasticstack %} |
| 32 | elk: |
| 33 | image: {{ pull_docker_registry }}sebp/elk:{{ pull_docker_tag }} |
| 34 | ports: |
| 35 | - "5601:5601" |
| 36 | - "9200:9200" |
| 37 | networks: |
| 38 | {% for network in xos_docker_networks %} |
| 39 | - {{ network }} |
| 40 | {% endfor %} |
| 41 | {% endif %} |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 42 | consul: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 43 | image: {{ pull_docker_registry }}gliderlabs/consul-server:{{ pull_docker_tag }} |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 44 | command: "-advertise=${MYHOST} -server -bootstrap" |
| 45 | ports: |
| 46 | - "127.0.0.1:8500:8500" |
| 47 | networks: |
| 48 | {% for network in xos_docker_networks %} |
| 49 | - {{ network }} |
| 50 | {% endfor %} |
| 51 | environment: |
Matteo Scandolo | 602dd3e | 2017-05-25 22:36:15 -0700 | [diff] [blame] | 52 | SERVICE_8300_IGNORE: "yes" |
| 53 | SERVICE_8301_IGNORE: "yes" |
| 54 | SERVICE_8302_IGNORE: "yes" |
| 55 | SERVICE_8400_IGNORE: "yes" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 56 | SERVICE_8500_NAME: "consul-rest" |
Matteo Scandolo | 602dd3e | 2017-05-25 22:36:15 -0700 | [diff] [blame] | 57 | SERVICE_8600_IGNORE: "yes" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 58 | restart: unless-stopped |
| 59 | registrator: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 60 | image: {{ pull_docker_registry }}gliderlabs/registrator:{{ pull_docker_tag }} |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 61 | command: [ |
| 62 | "-ip=${DOCKER_HOST_IP}", |
Matteo Scandolo | 602dd3e | 2017-05-25 22:36:15 -0700 | [diff] [blame] | 63 | "-internal", |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 64 | "-retry-attempts", "100", |
| 65 | "consul://consul:8500" |
| 66 | ] |
| 67 | networks: |
| 68 | {% for network in xos_docker_networks %} |
| 69 | - {{ network }} |
| 70 | {% endfor %} |
| 71 | links: |
| 72 | - consul |
| 73 | volumes: |
| 74 | - /var/run/docker.sock:/tmp/docker.sock |
| 75 | depends_on: |
| 76 | - consul |
| 77 | restart: unless-stopped |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 78 | xos_db: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 79 | image: {{ pull_docker_registry }}xosproject/xos-postgres:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 80 | networks: |
| 81 | {% for network in xos_docker_networks %} |
| 82 | - {{ network }} |
| 83 | {% endfor %} |
| 84 | expose: |
| 85 | - "5432" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 86 | depends_on: |
| 87 | - registrator |
| 88 | environment: |
| 89 | SERVICE_5432_NAME: "xos-db" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 90 | restart: unless-stopped |
| 91 | |
| 92 | {% if use_redis %} |
| 93 | xos_redis: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 94 | image: {{ pull_docker_registry }}redis:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 95 | networks: |
| 96 | {% for network in xos_docker_networks %} |
| 97 | - {{ network }} |
| 98 | {% endfor %} |
| 99 | logging: |
| 100 | driver: "json-file" |
| 101 | options: |
| 102 | max-size: "1000k" |
| 103 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 104 | depends_on: |
| 105 | - registrator |
| 106 | environment: |
| 107 | SERVICE_NAME: "redis" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 108 | restart: unless-stopped |
| 109 | {% endif %} |
| 110 | |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 111 | xos_gui: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 112 | image: {{ pull_docker_registry }}xosproject/xos-gui:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 113 | networks: |
| 114 | {% for network in xos_docker_networks %} |
| 115 | - {{ network }} |
| 116 | {% endfor %} |
| 117 | ports: |
| 118 | - "4000:4000" |
| 119 | links: |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 120 | - xos_ws:xos-ws |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 121 | - xos_chameleon:xos-chameleon |
| 122 | depends_on: |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 123 | - xos_ws |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 124 | - xos_chameleon |
| 125 | volumes: |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 126 | - {{ head_cord_profile_dir }}/style.config.js:/var/www/dist/style.config.js |
| 127 | - {{ head_cord_profile_dir }}/app.config.js:/var/www/dist/app.config.js |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 128 | volumes_from: |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 129 | - gui_extensions_store |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 130 | logging: |
| 131 | driver: "json-file" |
| 132 | options: |
| 133 | max-size: "1000k" |
| 134 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 135 | depends_on: |
| 136 | - registrator |
| 137 | environment: |
| 138 | SERVICE_4000_NAME: "xos-gui" |
Matteo Scandolo | 602dd3e | 2017-05-25 22:36:15 -0700 | [diff] [blame] | 139 | SERVICE_80_IGNORE: "yes" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 140 | restart: unless-stopped |
| 141 | |
Matteo Scandolo | c4f2c5f | 2017-07-12 16:25:08 -0700 | [diff] [blame] | 142 | xos_tosca: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 143 | image: {{ pull_docker_registry }}xosproject/xos-tosca:{{ pull_docker_tag }} |
Matteo Scandolo | c4f2c5f | 2017-07-12 16:25:08 -0700 | [diff] [blame] | 144 | networks: |
| 145 | {% for network in xos_docker_networks %} |
| 146 | - {{ network }} |
| 147 | {% endfor %} |
| 148 | ports: |
| 149 | - "9102:9102" |
| 150 | links: |
| 151 | - xos_core:xos-core |
| 152 | volumes: |
| 153 | - {{ head_cord_profile_dir }}/xos-tosca.config.yaml:/opt/xos-tosca/src/xos-tosca.config.yaml |
Matteo Scandolo | 9b5e668 | 2017-09-13 08:51:20 -0700 | [diff] [blame] | 154 | - {{ head_cord_profile_dir }}/im_cert_chain.pem:/usr/local/share/ca-certificates/local_certs.crt:ro |
Matteo Scandolo | c4f2c5f | 2017-07-12 16:25:08 -0700 | [diff] [blame] | 155 | depends_on: |
| 156 | - xos_core |
| 157 | - registrator |
| 158 | logging: |
| 159 | driver: "json-file" |
| 160 | options: |
| 161 | max-size: "1000k" |
| 162 | max-file: "5" |
| 163 | environment: |
| 164 | SERVICE_9102_NAME: "xos-tosca" |
| 165 | restart: unless-stopped |
| 166 | |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 167 | xos_chameleon: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 168 | image: {{ pull_docker_registry }}xosproject/chameleon:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 169 | networks: |
| 170 | {% for network in xos_docker_networks %} |
| 171 | - {{ network }} |
| 172 | {% endfor %} |
Matteo Scandolo | 7023aa2 | 2017-05-09 11:34:52 -0700 | [diff] [blame] | 173 | command: python chameleon/chameleon/main.py -R 9101 -G xos-core:50055 --swagger-url /apidocs |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 174 | ports: |
| 175 | - "9101:9101" |
| 176 | links: |
| 177 | - xos_core:xos-core |
| 178 | depends_on: |
| 179 | - xos_core |
| 180 | logging: |
| 181 | driver: "json-file" |
| 182 | options: |
| 183 | max-size: "1000k" |
| 184 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 185 | depends_on: |
| 186 | - registrator |
| 187 | environment: |
| 188 | SERVICE_9101_NAME: "xos-rest" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 189 | restart: unless-stopped |
| 190 | |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 191 | gui_extensions_store: |
Andy Bavier | d2cab42 | 2017-07-24 16:38:24 -0700 | [diff] [blame] | 192 | image: {{ pull_docker_registry }}node:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 193 | networks: |
| 194 | {% for network in xos_docker_networks %} |
| 195 | - {{ network }} |
| 196 | {% endfor %} |
| 197 | command: /bin/true |
| 198 | volumes: |
| 199 | - /var/www/dist/extensions |
| 200 | logging: |
| 201 | driver: "json-file" |
| 202 | options: |
| 203 | max-size: "1000k" |
| 204 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 205 | depends_on: |
| 206 | - registrator |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 207 | |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 208 | xos_ws: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 209 | image: {{ pull_docker_registry }}xosproject/xos-ws:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 210 | networks: |
| 211 | {% for network in xos_docker_networks %} |
| 212 | - {{ network }} |
| 213 | {% endfor %} |
| 214 | command: npm start -- --config gateway-config.yml |
| 215 | ports: |
| 216 | - "3000:3000" |
| 217 | links: |
Matteo Scandolo | dd5fc6a | 2018-01-19 16:41:52 -0800 | [diff] [blame] | 218 | - xos_core:xos |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 219 | {% if use_redis %} |
| 220 | - xos_redis:redis |
| 221 | {% endif %} |
| 222 | depends_on: |
Matteo Scandolo | dd5fc6a | 2018-01-19 16:41:52 -0800 | [diff] [blame] | 223 | - xos_core |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 224 | {% if use_redis %} |
| 225 | - xos_redis |
| 226 | {% endif %} |
| 227 | volumes: |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 228 | - {{ head_cord_profile_dir }}/gateway-config.yml:/var/www/src/config/gateway-config.yml |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 229 | logging: |
| 230 | driver: "json-file" |
| 231 | options: |
| 232 | max-size: "1000k" |
| 233 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 234 | depends_on: |
| 235 | - registrator |
| 236 | environment: |
| 237 | SERVICE_3000_NAME: "xos-ws" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 238 | restart: unless-stopped |
| 239 | |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 240 | xos_core: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 241 | image: {{ pull_docker_registry }}xosproject/xos-ui:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 242 | networks: |
| 243 | {% for network in xos_docker_networks %} |
| 244 | - {{ network }} |
| 245 | {% endfor %} |
Sapan Bhatia | 17b48f9 | 2018-01-03 12:42:50 -0500 | [diff] [blame] | 246 | command: bash -c "service filebeat start; cd coreapi; bash ./start_coreapi.sh" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 247 | ports: |
| 248 | - "50051:50051" |
| 249 | - "50055:50055" |
| 250 | links: |
Gopinath Taget | 4c13da6 | 2018-01-19 16:13:19 -0800 | [diff] [blame] | 251 | - xos_db:xos-db |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 252 | - consul:consul |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 253 | {% if use_redis %} |
| 254 | - xos_redis:redis |
| 255 | {% endif %} |
| 256 | depends_on: |
| 257 | - xos_db |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 258 | - registrator |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 259 | {% if use_redis %} |
| 260 | - xos_redis |
| 261 | {% endif %} |
| 262 | volumes: |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 263 | - {{ head_cord_profile_dir }}/xos_config.yaml:/opt/xos/xos_config.yaml:ro |
| 264 | - {{ head_cord_profile_dir }}:/opt/cord_profile:ro |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 265 | - {{ head_cord_profile_dir }}/im_cert_chain.pem:/usr/local/share/ca-certificates/local_certs.crt:ro |
Matteo Scandolo | b92469d | 2017-07-28 17:32:00 -0700 | [diff] [blame] | 266 | - {{ head_cord_profile_dir }}/initial_data.yaml:/opt/xos/core/migrations/initial_data.yaml:ro |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 267 | - /var/run/docker.sock:/var/run/docker.sock |
| 268 | logging: |
| 269 | driver: "json-file" |
| 270 | options: |
| 271 | max-size: "1000k" |
| 272 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 273 | environment: |
| 274 | SERVICE_50051_NAME: "xos-grpc-secure" |
| 275 | SERVICE_50055_NAME: "xos-grpc-insecure" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 276 | restart: unless-stopped |
| 277 | |
| 278 | {% for ext in enabled_gui_extensions %} |
| 279 | gui-extension-{{ ext.name }}: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 280 | image: {{ pull_docker_registry }}xosproject/gui-extension-{{ ext.name }}:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 281 | networks: |
| 282 | {% for network in xos_docker_networks %} |
| 283 | - {{ network }} |
| 284 | {% endfor %} |
Matteo Scandolo | 31634f2 | 2017-11-16 10:30:11 -0800 | [diff] [blame] | 285 | command: /bin/sh -c "mkdir -p /var/www/dist/extensions/{{ ext.name }}/ && cp -R /tmp/* /var/www/dist/extensions/{{ ext.name }}/" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 286 | volumes_from: |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 287 | - gui_extensions_store |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 288 | logging: |
| 289 | driver: "json-file" |
| 290 | options: |
| 291 | max-size: "1000k" |
| 292 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 293 | depends_on: |
| 294 | - registrator |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 295 | {% endfor %} |
| 296 | |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 297 | {% for svc in xos_services %} |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 298 | {% if svc.synchronizer is not defined or svc.synchronizer %} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 299 | {{ svc.name }}-synchronizer: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 300 | image: {{ pull_docker_registry }}xosproject/{{ svc.name }}-synchronizer:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 301 | networks: |
| 302 | {% for network in xos_docker_networks %} |
| 303 | - {{ network }} |
| 304 | {% endfor %} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 305 | depends_on: |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 306 | - registrator |
| 307 | {% if use_redis %} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 308 | - xos_redis |
| 309 | {% endif %} |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 310 | links: |
| 311 | - consul:consul |
Matteo Scandolo | df7a6a7 | 2018-01-11 16:09:38 -0800 | [diff] [blame] | 312 | - xos_core:xos-core |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 313 | {% if use_redis %} |
| 314 | - xos_redis:redis |
| 315 | {% endif %} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 316 | volumes: |
Zack Williams | 9cea13e | 2017-07-25 16:32:59 -0700 | [diff] [blame] | 317 | - {{ head_cord_profile_dir }}/xos_config_synchronizer.yaml:/opt/xos/xos_config.yaml:ro |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 318 | - {{ head_cord_profile_dir }}/node_key:/opt/cord_profile/node_key:ro |
Zack Williams | 7928696 | 2017-07-10 12:24:37 -0700 | [diff] [blame] | 319 | - {{ head_credentials_dir }}:/opt/xos/services/{{ svc.name }}/credentials:ro |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 320 | - {{ head_cord_profile_dir }}/im_cert_chain.pem:/usr/local/share/ca-certificates/local_certs.crt:ro |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 321 | {% if svc.keypair is defined %} |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 322 | - {{ head_cord_profile_dir }}/key_import/{{ svc.keypair }}:/opt/xos/services/{{ svc.name }}/keys/{{ svc.keypair }}:ro |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 323 | {% endif %} |
| 324 | {% if svc.name == "openstack" %} |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 325 | - {{ head_cord_profile_dir }}/images:/opt/xos/images:ro |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 326 | {% endif %} |
| 327 | logging: |
| 328 | driver: "json-file" |
| 329 | options: |
| 330 | max-size: "1000k" |
| 331 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 332 | environment: |
| 333 | SERVICE_NAME: "xos-{{ svc.name }}-synchronizer" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 334 | restart: unless-stopped |
| 335 | |
| 336 | {% endif %} |
| 337 | {% endfor %} |