Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 1 | xos_db: |
| 2 | image: xosproject/xos-postgres |
| 3 | expose: |
| 4 | - "5432" |
| 5 | |
| 6 | xos_synchronizer_openstack: |
| 7 | image: xosproject/xos-synchronizer-openstack |
| 8 | command: bash -c "update-ca-certificates; sleep 120; python /opt/xos/synchronizers/openstack/xos-synchronizer.py" |
| 9 | #command: sleep 86400 |
| 10 | labels: |
| 11 | org.xosproject.kind: synchronizer |
| 12 | org.xosproject.target: openstack |
| 13 | links: |
| 14 | - xos_db |
| 15 | volumes: |
| 16 | - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config:ro |
| 17 | - /usr/local/share/ca-certificates:/usr/local/share/ca-certificates:ro |
| 18 | - ./files/xos_opencloud_config:/opt/xos/xos_configuration/xos_opencloud_config:ro |
| 19 | - ./images:/opt/xos/images:ro |
| 20 | log_driver: "json-file" |
| 21 | log_opt: |
| 22 | max-size: "100k" |
| 23 | max-file: "5" |
| 24 | |
| 25 | xos_synchronizer_hpc: |
| 26 | image: xosproject/xos-synchronizer-openstack |
| 27 | command: bash -c "sleep 120; python /opt/xos/synchronizers/hpc/hpc-synchronizer.py -C /opt/xos/synchronizers/hpc/hpc_synchronizer_config" |
| 28 | #command: sleep 86400 |
| 29 | labels: |
| 30 | org.xosproject.kind: synchronizer |
| 31 | org.xosproject.target: hpc |
| 32 | links: |
| 33 | - xos_db |
| 34 | volumes: |
| 35 | - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config:ro |
| 36 | - /usr/local/share/ca-certificates:/usr/local/share/ca-certificates:ro |
| 37 | - ./files/xos_opencloud_config:/opt/xos/xos_configuration/xos_opencloud_config:ro |
| 38 | log_driver: "json-file" |
| 39 | log_opt: |
| 40 | max-size: "100k" |
| 41 | max-file: "5" |
| 42 | |
| 43 | xos_watcher_hpc: |
| 44 | image: xosproject/xos-synchronizer-openstack |
| 45 | command: bash -c "sleep 120; python /opt/xos/synchronizers/hpc/hpc_watcher.py" |
| 46 | #command: sleep 86400 |
| 47 | labels: |
| 48 | org.xosproject.kind: watcher |
| 49 | org.xosproject.target: hpc |
| 50 | links: |
| 51 | - xos_db |
| 52 | volumes: |
| 53 | - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config:ro |
| 54 | - /usr/local/share/ca-certificates:/usr/local/share/ca-certificates:ro |
| 55 | - ./files/xos_opencloud_config:/opt/xos/xos_configuration/xos_opencloud_config:ro |
| 56 | |
| 57 | # FUTURE |
| 58 | #xos_swarm_synchronizer: |
| 59 | # image: xosproject/xos-swarm-synchronizer |
| 60 | # labels: |
| 61 | # org.xosproject.kind: synchronizer |
| 62 | # org.xosproject.target: swarm |
| 63 | |
| 64 | xos: |
| 65 | image: xosproject/xos |
| 66 | command: python /opt/xos/manage.py runserver 0.0.0.0:8000 --insecure --makemigrations |
| 67 | ports: |
| 68 | - "80:8000" |
| 69 | links: |
| 70 | - xos_db |
| 71 | volumes: |
| 72 | - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config:ro |
| 73 | - ./files/xos_opencloud_config:/opt/xos/xos_configuration/xos_opencloud_config:ro |