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 |
Matteo Scandolo | aec93d4 | 2017-09-13 08:51:20 -0700 | [diff] [blame] | 143 | - {{ 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] | 144 | depends_on: |
| 145 | - xos_core |
| 146 | - registrator |
| 147 | logging: |
| 148 | driver: "json-file" |
| 149 | options: |
| 150 | max-size: "1000k" |
| 151 | max-file: "5" |
| 152 | environment: |
| 153 | SERVICE_9102_NAME: "xos-tosca" |
| 154 | restart: unless-stopped |
| 155 | |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 156 | xos_chameleon: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 157 | image: {{ pull_docker_registry }}xosproject/chameleon:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 158 | networks: |
| 159 | {% for network in xos_docker_networks %} |
| 160 | - {{ network }} |
| 161 | {% endfor %} |
Matteo Scandolo | 7023aa2 | 2017-05-09 11:34:52 -0700 | [diff] [blame] | 162 | 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] | 163 | ports: |
| 164 | - "9101:9101" |
| 165 | links: |
| 166 | - xos_core:xos-core |
| 167 | depends_on: |
| 168 | - xos_core |
| 169 | logging: |
| 170 | driver: "json-file" |
| 171 | options: |
| 172 | max-size: "1000k" |
| 173 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 174 | depends_on: |
| 175 | - registrator |
| 176 | environment: |
| 177 | SERVICE_9101_NAME: "xos-rest" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 178 | restart: unless-stopped |
| 179 | |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 180 | gui_extensions_store: |
Andy Bavier | d2cab42 | 2017-07-24 16:38:24 -0700 | [diff] [blame] | 181 | image: {{ pull_docker_registry }}node:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 182 | networks: |
| 183 | {% for network in xos_docker_networks %} |
| 184 | - {{ network }} |
| 185 | {% endfor %} |
| 186 | command: /bin/true |
| 187 | volumes: |
| 188 | - /var/www/dist/extensions |
| 189 | logging: |
| 190 | driver: "json-file" |
| 191 | options: |
| 192 | max-size: "1000k" |
| 193 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 194 | depends_on: |
| 195 | - registrator |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 196 | |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 197 | xos_ws: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 198 | image: {{ pull_docker_registry }}xosproject/xos-ws:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 199 | networks: |
| 200 | {% for network in xos_docker_networks %} |
| 201 | - {{ network }} |
| 202 | {% endfor %} |
| 203 | command: npm start -- --config gateway-config.yml |
| 204 | ports: |
| 205 | - "3000:3000" |
| 206 | links: |
| 207 | - xos_ui:xos |
| 208 | {% if use_redis %} |
| 209 | - xos_redis:redis |
| 210 | {% endif %} |
| 211 | depends_on: |
| 212 | - xos_ui |
| 213 | {% if use_redis %} |
| 214 | - xos_redis |
| 215 | {% endif %} |
| 216 | volumes: |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 217 | - {{ 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] | 218 | logging: |
| 219 | driver: "json-file" |
| 220 | options: |
| 221 | max-size: "1000k" |
| 222 | max-file: "5" |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 223 | depends_on: |
| 224 | - registrator |
| 225 | environment: |
| 226 | SERVICE_3000_NAME: "xos-ws" |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 227 | restart: unless-stopped |
| 228 | |
| 229 | xos_ui: |
Andy Bavier | 75e1712 | 2017-07-26 09:07:19 -0700 | [diff] [blame] | 230 | image: {{ pull_docker_registry }}xosproject/xos-ui:{{ pull_docker_tag }} |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 231 | networks: |
| 232 | {% for network in xos_docker_networks %} |
| 233 | - {{ network }} |
| 234 | {% endfor %} |
Matteo Scandolo | f2a2c87 | 2017-08-24 13:27:34 -0700 | [diff] [blame] | 235 | command: python /opt/xos/manage.py runserver 0.0.0.0:9000 |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 236 | ports: |
| 237 | - "9000:9000" |
| 238 | links: |
| 239 | - xos_db:xos_db |
Matteo Scandolo | 893b3d5 | 2017-05-18 16:59:53 -0700 | [diff] [blame] | 240 | - consul:consul |
Andy Bavier | 9e7d54a | 2017-04-17 11:37:02 -0400 | [diff] [blame] | 241 | {% if use_redis %} |
| 242 | - xos_redis:redis |
| 243 | {% endif %} |
| 244 | depends_on: |
| 245 | - xos_db |
| 246 | {% if use_redis %} |
| 247 | - xos_redis |
| 248 | {% endif %} |
| 249 | volumes: |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 250 | - {{ head_cord_profile_dir }}/xos_config.yaml:/opt/xos/xos_config.yaml:ro |
| 251 | - {{ head_cord_profile_dir }}:/opt/cord_profile:ro |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 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 |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 289 | - {{ 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] | 290 | - {{ 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] | 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 %} |
Matteo Scandolo | 7c195f7 | 2017-11-16 10:30:11 -0800 | [diff] [blame] | 309 | 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] | 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 %} |