Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 1 | --- |
| 2 | version: '2' |
Srikanth Vavilapalli | f95cd5b | 2016-07-10 19:08:04 +0000 | [diff] [blame] | 3 | |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 4 | networks: |
| 5 | xos: |
| 6 | external: true |
| 7 | |
| 8 | services: |
| 9 | |
| 10 | xos_db: |
| 11 | image: xosproject/xos-postgres |
| 12 | networks: |
| 13 | - xos |
| 14 | expose: |
| 15 | - "5432" |
| 16 | |
| 17 | xos_bootstrap_ui: |
Srikanth Vavilapalli | f95cd5b | 2016-07-10 19:08:04 +0000 | [diff] [blame] | 18 | image: xosproject/xos |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 19 | networks: |
| 20 | - xos |
Matteo Scandolo | a317b87 | 2017-01-10 12:02:41 -0800 | [diff] [blame] | 21 | command: python /opt/xos/manage.py runserver 0.0.0.0:9001 --insecure --makemigrations |
Srikanth Vavilapalli | f95cd5b | 2016-07-10 19:08:04 +0000 | [diff] [blame] | 22 | environment: |
| 23 | - CONFIG_DIR |
| 24 | ports: |
Matteo Scandolo | a317b87 | 2017-01-10 12:02:41 -0800 | [diff] [blame] | 25 | - "9001:9001" |
Srikanth Vavilapalli | f95cd5b | 2016-07-10 19:08:04 +0000 | [diff] [blame] | 26 | links: |
| 27 | - xos_db |
| 28 | volumes: |
| 29 | - ../setup:/root/setup:ro |
| 30 | - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config |
| 31 | - ./xos_cord_config:/opt/xos/xos_configuration/xos_cord_config:ro |
| 32 | - ../../xos_services:/opt/xos_services |
Scott Baker | da3b159 | 2016-10-24 10:45:36 -0700 | [diff] [blame] | 33 | - ../../xos_libraries:/opt/xos_libraries |
Srikanth Vavilapalli | f95cd5b | 2016-07-10 19:08:04 +0000 | [diff] [blame] | 34 | |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 35 | xos_synchronizer_onboarding: |
Scott Baker | d25ae9f | 2016-10-20 15:43:33 -0700 | [diff] [blame] | 36 | image: xosproject/xos |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 37 | networks: |
| 38 | - xos |
Srikanth Vavilapalli | f95cd5b | 2016-07-10 19:08:04 +0000 | [diff] [blame] | 39 | command: bash -c "cd /opt/xos/synchronizers/onboarding; ./run.sh" |
| 40 | # command: sleep 86400 |
| 41 | labels: |
| 42 | org.xosproject.kind: synchronizer |
| 43 | org.xosproject.target: onboarding |
| 44 | links: |
| 45 | - xos_db |
| 46 | volumes: |
| 47 | - /var/run/docker.sock:/var/run/docker.sock |
| 48 | - ./key_import:/opt/xos/key_import:ro |
| 49 | - ./onboarding-docker-compose:/opt/xos/synchronizers/onboarding/docker-compose |
| 50 | - ../../xos_services:/opt/xos_services |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 51 | logging: |
| 52 | driver: "json-file" |
| 53 | options: |
| 54 | max-size: "1000k" |
| 55 | max-file: "5" |
Srikanth Vavilapalli | f95cd5b | 2016-07-10 19:08:04 +0000 | [diff] [blame] | 56 | |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 57 | xos_synchronizer_openstack: |
Srikanth Vavilapalli | f95cd5b | 2016-07-10 19:08:04 +0000 | [diff] [blame] | 58 | command: bash -c "sleep 120; python /opt/xos/synchronizers/openstack/xos-synchronizer.py" |
| 59 | image: xosproject/xos-synchronizer-openstack |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 60 | networks: |
| 61 | - xos |
Srikanth Vavilapalli | f95cd5b | 2016-07-10 19:08:04 +0000 | [diff] [blame] | 62 | labels: |
| 63 | org.xosproject.kind: synchronizer |
| 64 | org.xosproject.target: openstack |
| 65 | links: |
| 66 | - xos_db |
| 67 | extra_hosts: |
| 68 | - ctl:${MYIP} |
| 69 | volumes: |
| 70 | - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config:ro |
| 71 | - ../setup:/root/setup:ro |
| 72 | - ./xos_cord_config:/opt/xos/xos_configuration/xos_cord_config:ro |
| 73 | - ./images:/opt/xos/images:ro |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 74 | logging: |
| 75 | driver: "json-file" |
| 76 | options: |
| 77 | max-size: "1000k" |
| 78 | max-file: "5" |