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: |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 31 | consul: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 32 | image: {{ pull_docker_registry }}gliderlabs/consul-server:{{ pull_docker_tag }} |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 33 | command: "-advertise=${MYHOST} -server -bootstrap" |
| 34 | ports: |
| 35 | - "127.0.0.1:8500:8500" |
| 36 | networks: |
| 37 | {% for network in xos_docker_networks %} |
| 38 | - {{ network }} |
| 39 | {% endfor %} |
| 40 | environment: |
Matteo Scandolo | 602dd3e | 2017-05-25 22:36:15 -0700 | [diff] [blame] | 41 | SERVICE_8300_IGNORE: "yes" |
| 42 | SERVICE_8301_IGNORE: "yes" |
| 43 | SERVICE_8302_IGNORE: "yes" |
| 44 | SERVICE_8400_IGNORE: "yes" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 45 | SERVICE_8500_NAME: "consul-rest" |
Matteo Scandolo | 602dd3e | 2017-05-25 22:36:15 -0700 | [diff] [blame] | 46 | SERVICE_8600_IGNORE: "yes" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 47 | restart: unless-stopped |
| 48 | registrator: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 49 | image: {{ pull_docker_registry }}gliderlabs/registrator:{{ pull_docker_tag }} |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 50 | command: [ |
| 51 | "-ip=${DOCKER_HOST_IP}", |
Matteo Scandolo | 602dd3e | 2017-05-25 22:36:15 -0700 | [diff] [blame] | 52 | "-internal", |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 53 | "-retry-attempts", "100", |
| 54 | "consul://consul:8500" |
| 55 | ] |
| 56 | networks: |
| 57 | {% for network in xos_docker_networks %} |
| 58 | - {{ network }} |
| 59 | {% endfor %} |
| 60 | links: |
| 61 | - consul |
| 62 | volumes: |
| 63 | - /var/run/docker.sock:/tmp/docker.sock |
| 64 | depends_on: |
| 65 | - consul |
| 66 | restart: unless-stopped |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 67 | xos_db: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 68 | image: {{ pull_docker_registry }}xosproject/xos-postgres:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 69 | networks: |
| 70 | {% for network in xos_docker_networks %} |
| 71 | - {{ network }} |
| 72 | {% endfor %} |
| 73 | expose: |
| 74 | - "5432" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 75 | depends_on: |
| 76 | - registrator |
| 77 | environment: |
| 78 | SERVICE_5432_NAME: "xos-db" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 79 | restart: unless-stopped |
| 80 | |
| 81 | {% if use_redis %} |
| 82 | xos_redis: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 83 | image: {{ pull_docker_registry }}redis:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 84 | networks: |
| 85 | {% for network in xos_docker_networks %} |
| 86 | - {{ network }} |
| 87 | {% endfor %} |
| 88 | logging: |
| 89 | driver: "json-file" |
| 90 | options: |
| 91 | max-size: "1000k" |
| 92 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 93 | depends_on: |
| 94 | - registrator |
| 95 | environment: |
| 96 | SERVICE_NAME: "redis" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 97 | restart: unless-stopped |
| 98 | {% endif %} |
| 99 | |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 100 | xos_gui: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 101 | image: {{ pull_docker_registry }}xosproject/xos-gui:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 102 | networks: |
| 103 | {% for network in xos_docker_networks %} |
| 104 | - {{ network }} |
| 105 | {% endfor %} |
| 106 | ports: |
| 107 | - "4000:4000" |
| 108 | links: |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 109 | - xos_ws:xos-ws |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 110 | - xos_chameleon:xos-chameleon |
| 111 | depends_on: |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 112 | - xos_ws |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 113 | - xos_chameleon |
| 114 | volumes: |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 115 | - {{ head_cord_profile_dir }}/style.config.js:/var/www/dist/style.config.js |
| 116 | - {{ 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] | 117 | volumes_from: |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 118 | - gui_extensions_store |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 119 | logging: |
| 120 | driver: "json-file" |
| 121 | options: |
| 122 | max-size: "1000k" |
| 123 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 124 | depends_on: |
| 125 | - registrator |
| 126 | environment: |
| 127 | SERVICE_4000_NAME: "xos-gui" |
Matteo Scandolo | 602dd3e | 2017-05-25 22:36:15 -0700 | [diff] [blame] | 128 | SERVICE_80_IGNORE: "yes" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 129 | restart: unless-stopped |
| 130 | |
Matteo Scandolo | c4f2c5f | 2017-07-12 16:25:08 -0700 | [diff] [blame] | 131 | xos_tosca: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 132 | image: {{ pull_docker_registry }}xosproject/xos-tosca:{{ pull_docker_tag }} |
Matteo Scandolo | c4f2c5f | 2017-07-12 16:25:08 -0700 | [diff] [blame] | 133 | networks: |
| 134 | {% for network in xos_docker_networks %} |
| 135 | - {{ network }} |
| 136 | {% endfor %} |
| 137 | ports: |
| 138 | - "9102:9102" |
| 139 | links: |
| 140 | - xos_core:xos-core |
| 141 | volumes: |
| 142 | - {{ head_cord_profile_dir }}/xos-tosca.config.yaml:/opt/xos-tosca/src/xos-tosca.config.yaml |
| 143 | depends_on: |
| 144 | - xos_core |
| 145 | - registrator |
| 146 | logging: |
| 147 | driver: "json-file" |
| 148 | options: |
| 149 | max-size: "1000k" |
| 150 | max-file: "5" |
| 151 | environment: |
| 152 | SERVICE_9102_NAME: "xos-tosca" |
| 153 | restart: unless-stopped |
| 154 | |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 155 | xos_chameleon: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 156 | image: {{ pull_docker_registry }}xosproject/chameleon:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 157 | networks: |
| 158 | {% for network in xos_docker_networks %} |
| 159 | - {{ network }} |
| 160 | {% endfor %} |
Matteo Scandolo | 7023aa2 | 2017-05-09 11:34:52 -0700 | [diff] [blame] | 161 | 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] | 162 | ports: |
| 163 | - "9101:9101" |
| 164 | links: |
| 165 | - xos_core:xos-core |
| 166 | depends_on: |
| 167 | - xos_core |
| 168 | logging: |
| 169 | driver: "json-file" |
| 170 | options: |
| 171 | max-size: "1000k" |
| 172 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 173 | depends_on: |
| 174 | - registrator |
| 175 | environment: |
| 176 | SERVICE_9101_NAME: "xos-rest" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 177 | restart: unless-stopped |
| 178 | |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 179 | gui_extensions_store: |
Andy Bavier | d2cab42 | 2017-07-24 16:38:24 -0700 | [diff] [blame] | 180 | image: {{ pull_docker_registry }}node:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 181 | networks: |
| 182 | {% for network in xos_docker_networks %} |
| 183 | - {{ network }} |
| 184 | {% endfor %} |
| 185 | command: /bin/true |
| 186 | volumes: |
| 187 | - /var/www/dist/extensions |
| 188 | logging: |
| 189 | driver: "json-file" |
| 190 | options: |
| 191 | max-size: "1000k" |
| 192 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 193 | depends_on: |
| 194 | - registrator |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 195 | |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 196 | xos_ws: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 197 | image: {{ pull_docker_registry }}xosproject/xos-ws:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 198 | networks: |
| 199 | {% for network in xos_docker_networks %} |
| 200 | - {{ network }} |
| 201 | {% endfor %} |
| 202 | command: npm start -- --config gateway-config.yml |
| 203 | ports: |
| 204 | - "3000:3000" |
| 205 | links: |
| 206 | - xos_ui:xos |
| 207 | {% if use_redis %} |
| 208 | - xos_redis:redis |
| 209 | {% endif %} |
| 210 | depends_on: |
| 211 | - xos_ui |
| 212 | {% if use_redis %} |
| 213 | - xos_redis |
| 214 | {% endif %} |
| 215 | volumes: |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 216 | - {{ 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] | 217 | logging: |
| 218 | driver: "json-file" |
| 219 | options: |
| 220 | max-size: "1000k" |
| 221 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 222 | depends_on: |
| 223 | - registrator |
| 224 | environment: |
| 225 | SERVICE_3000_NAME: "xos-ws" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 226 | restart: unless-stopped |
| 227 | |
| 228 | xos_ui: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 229 | image: {{ pull_docker_registry }}xosproject/xos-ui:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 230 | networks: |
| 231 | {% for network in xos_docker_networks %} |
| 232 | - {{ network }} |
| 233 | {% endfor %} |
| 234 | command: python /opt/xos/manage.py runserver 0.0.0.0:9000 --insecure --makemigrations |
| 235 | ports: |
| 236 | - "9000:9000" |
| 237 | links: |
| 238 | - xos_db:xos_db |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 239 | - consul:consul |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 240 | {% if use_redis %} |
| 241 | - xos_redis:redis |
| 242 | {% endif %} |
| 243 | depends_on: |
| 244 | - xos_db |
| 245 | {% if use_redis %} |
| 246 | - xos_redis |
| 247 | {% endif %} |
| 248 | volumes: |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 249 | - {{ head_cord_profile_dir }}/xos_config.yaml:/opt/xos/xos_config.yaml:ro |
| 250 | - {{ head_cord_profile_dir }}:/opt/cord_profile:ro |
| 251 | - {{ head_cord_dir }}/orchestration/xos_libraries/ng-xos-lib:/opt/xos_libraries/ng-xos-lib:ro |
| 252 | - {{ 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] | 253 | logging: |
| 254 | driver: "json-file" |
| 255 | options: |
| 256 | max-size: "1000k" |
| 257 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 258 | depends_on: |
| 259 | - registrator |
| 260 | environment: |
| 261 | SERVICE_9000_NAME: "xos-ui-deprecated" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 262 | restart: unless-stopped |
| 263 | |
| 264 | xos_core: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 265 | image: {{ pull_docker_registry }}xosproject/xos-ui:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 266 | networks: |
| 267 | {% for network in xos_docker_networks %} |
| 268 | - {{ network }} |
| 269 | {% endfor %} |
| 270 | command: bash -c "cd coreapi; bash ./start_coreapi.sh" |
| 271 | ports: |
| 272 | - "50051:50051" |
| 273 | - "50055:50055" |
| 274 | links: |
| 275 | - xos_db:xos_db |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 276 | - consul:consul |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 277 | {% if use_redis %} |
| 278 | - xos_redis:redis |
| 279 | {% endif %} |
| 280 | depends_on: |
| 281 | - xos_db |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 282 | - registrator |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 283 | {% if use_redis %} |
| 284 | - xos_redis |
| 285 | {% endif %} |
| 286 | volumes: |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 287 | - {{ head_cord_profile_dir }}/xos_config.yaml:/opt/xos/xos_config.yaml:ro |
| 288 | - {{ head_cord_profile_dir }}:/opt/cord_profile:ro |
| 289 | - {{ head_cord_dir }}/orchestration/xos_libraries/ng-xos-lib:/opt/xos_libraries/ng-xos-lib:ro |
| 290 | - {{ 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] | 291 | - /var/run/docker.sock:/var/run/docker.sock |
| 292 | logging: |
| 293 | driver: "json-file" |
| 294 | options: |
| 295 | max-size: "1000k" |
| 296 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 297 | environment: |
| 298 | SERVICE_50051_NAME: "xos-grpc-secure" |
| 299 | SERVICE_50055_NAME: "xos-grpc-insecure" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 300 | restart: unless-stopped |
| 301 | |
| 302 | {% for ext in enabled_gui_extensions %} |
| 303 | gui-extension-{{ ext.name }}: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 304 | image: {{ pull_docker_registry }}xosproject/gui-extension-{{ ext.name }}:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 305 | networks: |
| 306 | {% for network in xos_docker_networks %} |
| 307 | - {{ network }} |
| 308 | {% endfor %} |
| 309 | command: npm run build |
| 310 | volumes_from: |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 311 | - gui_extensions_store |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 312 | logging: |
| 313 | driver: "json-file" |
| 314 | options: |
| 315 | max-size: "1000k" |
| 316 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 317 | depends_on: |
| 318 | - registrator |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 319 | {% endfor %} |
| 320 | |
| 321 | {% if not frontend_only %} |
| 322 | {% for svc in xos_services %} |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 323 | {% if svc.synchronizer is not defined or svc.synchronizer %} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 324 | {{ svc.name }}-synchronizer: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 325 | image: {{ pull_docker_registry }}xosproject/{{ svc.name }}-synchronizer:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 326 | networks: |
| 327 | {% for network in xos_docker_networks %} |
| 328 | - {{ network }} |
| 329 | {% endfor %} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 330 | depends_on: |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 331 | - registrator |
| 332 | {% if use_redis %} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 333 | - xos_redis |
| 334 | {% endif %} |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 335 | links: |
| 336 | - consul:consul |
| 337 | {% if use_redis %} |
| 338 | - xos_redis:redis |
| 339 | {% endif %} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 340 | volumes: |
Zack Williams | 9cea13e | 2017-07-25 16:32:59 -0700 | [diff] [blame] | 341 | - {{ 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] | 342 | - {{ head_cord_profile_dir }}/node_key:/opt/cord_profile/node_key:ro |
Zack Williams | 7928696 | 2017-07-10 12:24:37 -0700 | [diff] [blame] | 343 | - {{ head_credentials_dir }}:/opt/xos/services/{{ svc.name }}/credentials:ro |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 344 | - {{ 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] | 345 | {% if svc.keypair is defined %} |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 346 | - {{ 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] | 347 | {% endif %} |
| 348 | {% if svc.name == "openstack" %} |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 349 | - {{ head_cord_profile_dir }}/images:/opt/xos/images:ro |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 350 | {% endif %} |
| 351 | logging: |
| 352 | driver: "json-file" |
| 353 | options: |
| 354 | max-size: "1000k" |
| 355 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 356 | environment: |
| 357 | SERVICE_NAME: "xos-{{ svc.name }}-synchronizer" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 358 | restart: unless-stopped |
| 359 | |
| 360 | {% endif %} |
| 361 | {% endfor %} |
| 362 | {% endif %} |