Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 1 | xos_db: |
| 2 | image: xosproject/xos-postgres |
| 3 | expose: |
| 4 | - "5432" |
| 5 | |
| 6 | xos_synchronizer_openstack: |
| 7 | command: bash -c "sleep 120; python /opt/xos/synchronizers/openstack/xos-synchronizer.py" |
| 8 | image: xosproject/xos-synchronizer-openstack |
| 9 | labels: |
| 10 | org.xosproject.kind: synchronizer |
| 11 | org.xosproject.target: openstack |
| 12 | links: |
| 13 | - xos_db |
| 14 | volumes: |
| 15 | - .:/root/setup:ro |
| 16 | - ../setup/id_rsa:/opt/xos/configurations/mcord/mcord_private_key:ro # private key |
| 17 | extra_hosts: |
| 18 | - "controller:10.102.81.3" |
| 19 | - "computeBBU1:10.102.81.6" |
| 20 | - "computeBBU2:10.102.81.7" |
| 21 | - "compute9:10.102.81.9" |
| 22 | - "compute10:10.102.81.10" |
| 23 | |
| 24 | xos_synchronizer_vbbu: |
| 25 | image: xosproject/xos-synchronizer-openstack |
| 26 | command: bash -c "sleep 120; python /opt/xos/synchronizers/vbbu/vbbu-synchronizer.py -C /opt/xos/synchronizers/vbbu/vbbu_config" |
| 27 | labels: |
| 28 | org.xosproject.kind: synchronizer |
| 29 | org.xosproject.target: vbbu |
| 30 | links: |
| 31 | - xos_db |
| 32 | volumes: |
| 33 | - ../setup/id_rsa_mcord:/opt/xos/configurations/mcord/mcord_private_key:ro # private key |
| 34 | - ../setup/id_rsa_mcord.pub:/opt/xos/configurations/mcord/mcord_public_key:ro # public key |
| 35 | - ../setup:/root/setup:ro |
| 36 | extra_hosts: |
| 37 | - "controller:10.102.81.3" |
| 38 | - "computeBBU1:10.102.81.6" |
| 39 | - "computeBBU2:10.102.81.7" |
| 40 | - "compute9:10.102.81.9" |
| 41 | - "compute10:10.102.81.10" |
| 42 | |
| 43 | xos_synchronizer_vpgwc: |
| 44 | image: xosproject/xos-synchronizer-openstack |
| 45 | command: bash -c "sleep 120; python /opt/xos/synchronizers/vpgwc/vpgwc-synchronizer.py -C /opt/xos/synchronizers/vpgwc/vpgwc_config" |
| 46 | labels: |
| 47 | org.xosproject.kind: synchronizer |
| 48 | org.xosproject.target: vpgwc |
| 49 | links: |
| 50 | - xos_db |
| 51 | volumes: |
| 52 | - ../setup/id_rsa_mcord:/opt/xos/configurations/mcord/mcord_private_key:ro # private key |
| 53 | - ../setup/id_rsa_mcord.pub:/opt/xos/configurations/mcord/mcord_public_key:ro # public key |
| 54 | - ../setup:/root/setup:ro |
| 55 | extra_hosts: |
| 56 | - "controller:10.102.81.3" |
| 57 | - "computeBBU1:10.102.81.6" |
| 58 | - "computeBBU2:10.102.81.7" |
| 59 | - "compute9:10.102.81.9" |
| 60 | - "compute10:10.102.81.10" |
| 61 | |
| 62 | # FUTURE |
| 63 | #xos_swarm_synchronizer: |
| 64 | # image: xosproject/xos-swarm-synchronizer |
| 65 | # labels: |
| 66 | # org.xosproject.kind: synchronizer |
| 67 | # org.xosproject.target: swarm |
| 68 | |
| 69 | xos: |
| 70 | command: python /opt/xos/manage.py runserver 0.0.0.0:8000 --insecure --makemigrations |
| 71 | image: xosproject/xos |
| 72 | links: |
| 73 | - xos_db |
| 74 | ports: |
| 75 | - "8000:8000" |
| 76 | volumes: |
| 77 | - .:/root/setup:ro |
| 78 | - ../setup/id_rsa.pub:/opt/xos/configurations/mcord/mcord_public_key:ro # private key |