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: |
| 218 | - xos_ui:xos |
| 219 | {% if use_redis %} |
| 220 | - xos_redis:redis |
| 221 | {% endif %} |
| 222 | depends_on: |
| 223 | - xos_ui |
| 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 | |
| 240 | xos_ui: |
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; python /opt/xos/manage.py runserver 0.0.0.0:9000" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 247 | ports: |
| 248 | - "9000:9000" |
| 249 | links: |
| 250 | - xos_db:xos_db |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 251 | - consul:consul |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 252 | {% if use_redis %} |
| 253 | - xos_redis:redis |
| 254 | {% endif %} |
| 255 | depends_on: |
| 256 | - xos_db |
| 257 | {% if use_redis %} |
| 258 | - xos_redis |
| 259 | {% endif %} |
| 260 | volumes: |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 261 | - {{ head_cord_profile_dir }}/xos_config.yaml:/opt/xos/xos_config.yaml:ro |
| 262 | - {{ head_cord_profile_dir }}:/opt/cord_profile:ro |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 263 | - {{ 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] | 264 | logging: |
| 265 | driver: "json-file" |
| 266 | options: |
| 267 | max-size: "1000k" |
| 268 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 269 | depends_on: |
| 270 | - registrator |
| 271 | environment: |
| 272 | SERVICE_9000_NAME: "xos-ui-deprecated" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 273 | restart: unless-stopped |
| 274 | |
| 275 | xos_core: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 276 | image: {{ pull_docker_registry }}xosproject/xos-ui:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 277 | networks: |
| 278 | {% for network in xos_docker_networks %} |
| 279 | - {{ network }} |
| 280 | {% endfor %} |
Sapan Bhatia | 17b48f9 | 2018-01-03 12:42:50 -0500 | [diff] [blame] | 281 | command: bash -c "service filebeat start; cd coreapi; bash ./start_coreapi.sh" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 282 | ports: |
| 283 | - "50051:50051" |
| 284 | - "50055:50055" |
| 285 | links: |
| 286 | - xos_db:xos_db |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 287 | - consul:consul |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 288 | {% if use_redis %} |
| 289 | - xos_redis:redis |
| 290 | {% endif %} |
| 291 | depends_on: |
| 292 | - xos_db |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 293 | - registrator |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 294 | {% if use_redis %} |
| 295 | - xos_redis |
| 296 | {% endif %} |
| 297 | volumes: |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 298 | - {{ head_cord_profile_dir }}/xos_config.yaml:/opt/xos/xos_config.yaml:ro |
| 299 | - {{ head_cord_profile_dir }}:/opt/cord_profile:ro |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 300 | - {{ 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] | 301 | - {{ 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] | 302 | - /var/run/docker.sock:/var/run/docker.sock |
| 303 | logging: |
| 304 | driver: "json-file" |
| 305 | options: |
| 306 | max-size: "1000k" |
| 307 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 308 | environment: |
| 309 | SERVICE_50051_NAME: "xos-grpc-secure" |
| 310 | SERVICE_50055_NAME: "xos-grpc-insecure" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 311 | restart: unless-stopped |
| 312 | |
| 313 | {% for ext in enabled_gui_extensions %} |
| 314 | gui-extension-{{ ext.name }}: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 315 | image: {{ pull_docker_registry }}xosproject/gui-extension-{{ ext.name }}:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 316 | networks: |
| 317 | {% for network in xos_docker_networks %} |
| 318 | - {{ network }} |
| 319 | {% endfor %} |
Matteo Scandolo | 31634f2 | 2017-11-16 10:30:11 -0800 | [diff] [blame] | 320 | 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] | 321 | volumes_from: |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 322 | - gui_extensions_store |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 323 | logging: |
| 324 | driver: "json-file" |
| 325 | options: |
| 326 | max-size: "1000k" |
| 327 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 328 | depends_on: |
| 329 | - registrator |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 330 | {% endfor %} |
| 331 | |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 332 | {% for svc in xos_services %} |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 333 | {% if svc.synchronizer is not defined or svc.synchronizer %} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 334 | {{ svc.name }}-synchronizer: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 335 | image: {{ pull_docker_registry }}xosproject/{{ svc.name }}-synchronizer:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 336 | networks: |
| 337 | {% for network in xos_docker_networks %} |
| 338 | - {{ network }} |
| 339 | {% endfor %} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 340 | depends_on: |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 341 | - registrator |
| 342 | {% if use_redis %} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 343 | - xos_redis |
| 344 | {% endif %} |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 345 | links: |
| 346 | - consul:consul |
Matteo Scandolo | df7a6a7 | 2018-01-11 16:09:38 -0800 | [diff] [blame] | 347 | - xos_core:xos-core |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 348 | {% if use_redis %} |
| 349 | - xos_redis:redis |
| 350 | {% endif %} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 351 | volumes: |
Zack Williams | 9cea13e | 2017-07-25 16:32:59 -0700 | [diff] [blame] | 352 | - {{ 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] | 353 | - {{ head_cord_profile_dir }}/node_key:/opt/cord_profile/node_key:ro |
Zack Williams | 7928696 | 2017-07-10 12:24:37 -0700 | [diff] [blame] | 354 | - {{ head_credentials_dir }}:/opt/xos/services/{{ svc.name }}/credentials:ro |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 355 | - {{ 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] | 356 | {% if svc.keypair is defined %} |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 357 | - {{ 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] | 358 | {% endif %} |
| 359 | {% if svc.name == "openstack" %} |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 360 | - {{ head_cord_profile_dir }}/images:/opt/xos/images:ro |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 361 | {% endif %} |
| 362 | logging: |
| 363 | driver: "json-file" |
| 364 | options: |
| 365 | max-size: "1000k" |
| 366 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 367 | environment: |
| 368 | SERVICE_NAME: "xos-{{ svc.name }}-synchronizer" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 369 | restart: unless-stopped |
| 370 | |
| 371 | {% endif %} |
| 372 | {% endfor %} |