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