Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 1 | --- |
| 2 | version: '2' |
| 3 | |
| 4 | networks: |
| 5 | xos: |
| 6 | external: true |
| 7 | |
| 8 | services: |
| 9 | xos_db: |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 10 | image: xosproject/xos-postgres |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 11 | networks: |
| 12 | - xos |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 13 | expose: |
| 14 | - "5432" |
| 15 | |
JianHao | 2f6dca2 | 2016-12-22 03:44:52 +0000 | [diff] [blame] | 16 | xos_redis: |
| 17 | image: redis |
| 18 | networks: |
| 19 | - xos |
Matteo Scandolo | 82d64ac | 2017-01-13 09:49:35 -0800 | [diff] [blame] | 20 | ports: |
| 21 | - "6379:6379" |
JianHao | 2f6dca2 | 2016-12-22 03:44:52 +0000 | [diff] [blame] | 22 | logging: |
| 23 | driver: "json-file" |
| 24 | options: |
| 25 | max-size: "1000k" |
| 26 | max-file: "5" |
| 27 | |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 28 | xos_synchronizer_onboarding: |
Scott Baker | d25ae9f | 2016-10-20 15:43:33 -0700 | [diff] [blame] | 29 | image: xosproject/xos |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 30 | networks: |
| 31 | - xos |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 32 | command: bash -c "cd /opt/xos/synchronizers/onboarding; ./run.sh" |
| 33 | #command: sleep 86400 |
| 34 | labels: |
| 35 | org.xosproject.kind: synchronizer |
| 36 | org.xosproject.target: onboarding |
| 37 | links: |
| 38 | - xos_db |
| 39 | volumes: |
| 40 | - /var/run/docker.sock:/var/run/docker.sock |
| 41 | - ./key_import:/opt/xos/key_import:ro |
| 42 | - ./onboarding-docker-compose:/opt/xos/synchronizers/onboarding/docker-compose |
| 43 | - ../../xos_services:/opt/xos_services |
Scott Baker | da3b159 | 2016-10-24 10:45:36 -0700 | [diff] [blame] | 44 | - ../../xos_libraries:/opt/xos_libraries |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 45 | logging: |
| 46 | driver: "json-file" |
| 47 | options: |
| 48 | max-size: "1000k" |
| 49 | max-file: "5" |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 50 | |
| 51 | #xos_synchronizer_openstack: |
| 52 | # command: bash -c "sleep 120; python /opt/xos/synchronizers/openstack/xos-synchronizer.py" |
| 53 | # image: xosproject/xos-synchronizer-openstack |
| 54 | # labels: |
| 55 | # org.xosproject.kind: synchronizer |
| 56 | # org.xosproject.target: openstack |
| 57 | # links: |
| 58 | # - xos_db |
| 59 | # volumes: |
| 60 | # - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config:ro |
| 61 | # - ./xos_cord_config:/opt/xos/xos_configuration/xos_cord_config:ro |
| 62 | # - .:/root/setup:ro |
| 63 | # - ./files/xos_vtn_config:/opt/xos/xos_configuration/xos_vtn_config:ro |
| 64 | # - ./images:/opt/xos/images:ro |
| 65 | # log_driver: "json-file" |
| 66 | # log_opt: |
| 67 | # max-size: "100k" |
| 68 | # max-file: "5" |
| 69 | |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 70 | xos_bootstrap_ui: |
Matteo Scandolo | a317b87 | 2017-01-10 12:02:41 -0800 | [diff] [blame] | 71 | command: python /opt/xos/manage.py runserver 0.0.0.0:9001 --insecure --makemigrations |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 72 | environment: |
| 73 | - CONFIG_DIR |
| 74 | image: xosproject/xos |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 75 | networks: |
| 76 | - xos |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 77 | links: |
| 78 | - xos_db |
| 79 | ports: |
Matteo Scandolo | a317b87 | 2017-01-10 12:02:41 -0800 | [diff] [blame] | 80 | - "9001:9001" |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 81 | volumes: |
| 82 | - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config:ro |
| 83 | - ./xos_cord_config:/opt/xos/xos_configuration/xos_cord_config:ro |
| 84 | - ./files/xos_vtn_config:/opt/xos/xos_configuration/xos_vtn_config:ro |
| 85 | - ../../xos_services:/opt/xos_services |
JianHao | 2f6dca2 | 2016-12-22 03:44:52 +0000 | [diff] [blame] | 86 | - ./admin-openrc.sh:/root/setup/admin-openrc.sh |
Scott Baker | d0c49fd | 2016-12-13 11:48:59 -0800 | [diff] [blame] | 87 | - ../common/tosca/fixtures.yaml:/opt/xos/bootstrap_tosca/fixtures.yaml |
| 88 | - ./deployment.yaml:/opt/xos/bootstrap_tosca/deployment.yaml |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 89 | logging: |
| 90 | driver: "json-file" |
| 91 | options: |
| 92 | max-size: "1000k" |
| 93 | max-file: "5" |
| 94 | |