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: |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 10 | image: xosproject/xos-postgres |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 11 | networks: |
| 12 | - xos |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 13 | expose: |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 14 | - "5432" |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 15 | |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 16 | xos_redis: |
Matteo Scandolo | d23b7bd | 2016-11-18 15:52:45 -0800 | [diff] [blame] | 17 | image: redis |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 18 | networks: |
| 19 | - xos |
Matteo Scandolo | d23b7bd | 2016-11-18 15:52:45 -0800 | [diff] [blame] | 20 | ports: |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 21 | - "6379:6379" |
Matteo Scandolo | d23b7bd | 2016-11-18 15:52:45 -0800 | [diff] [blame] | 22 | |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 23 | xos_bootstrap_ui: |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 24 | image: xosproject/xos |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 25 | networks: |
| 26 | - xos |
Matteo Scandolo | 6fde718 | 2016-07-13 12:03:00 -0700 | [diff] [blame] | 27 | # command: sleep 86400 |
Matteo Scandolo | a317b87 | 2017-01-10 12:02:41 -0800 | [diff] [blame] | 28 | command: python /opt/xos/manage.py runserver 0.0.0.0:9001 --insecure --makemigrations |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 29 | environment: |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 30 | - CONFIG_DIR |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 31 | ports: |
Matteo Scandolo | a317b87 | 2017-01-10 12:02:41 -0800 | [diff] [blame] | 32 | - "9001:9001" |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 33 | links: |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 34 | - xos_db |
| 35 | - xos_redis:redis |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 36 | volumes: |
| 37 | - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config |
Scott Baker | 7ab0221 | 2016-06-29 14:12:15 -0700 | [diff] [blame] | 38 | - ../cord-pod/files/xos_vtn_config:/opt/xos/xos_configuration/xos_vtn_config:ro |
Scott Baker | d0c49fd | 2016-12-13 11:48:59 -0800 | [diff] [blame] | 39 | - ../common/tosca/fixtures.yaml:/opt/xos/bootstrap_tosca/fixtures.yaml |
| 40 | - ./deployment.yaml:/opt/xos/bootstrap_tosca/deployment.yaml |
Matteo Scandolo | 6fde718 | 2016-07-13 12:03:00 -0700 | [diff] [blame] | 41 | - ../../xos/xos/api/utility:/opt/xos/api/utility |
Matteo Scandolo | 6b3ee5d | 2016-08-05 10:49:09 -0700 | [diff] [blame] | 42 | - ../../xos/xos/templates:/opt/xos/templates |
Matteo Scandolo | 4e3bc2a | 2016-07-22 11:19:19 -0700 | [diff] [blame] | 43 | - ../../xos/xos/core/templatetags:/opt/xos/core/templatetags |
Matteo Scandolo | fade3ec | 2016-08-02 10:17:53 -0700 | [diff] [blame] | 44 | - ../../xos/xos/core/xoslib/dashboards:/opt/xos/core/xoslib/dashboards |
| 45 | - ../../xos/xos/core/xoslib/static/css:/opt/xos/core/xoslib/static/css |
| 46 | - ../../xos/xos/core/xoslib/static/images:/opt/xos/core/xoslib/static/images |
| 47 | - ../../xos/xos/core/xoslib/static/js:/opt/xos/core/xoslib/static/js |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 48 | |
Matteo Scandolo | 6b3ee5d | 2016-08-05 10:49:09 -0700 | [diff] [blame] | 49 | # The following volumes are sometimes used in development, |
| 50 | # but they are not tested and they can break part of the system, handle with care. |
| 51 | # - ../../xos_services:/opt/xos_services |
| 52 | # - ../../xos/xos/core/models:/opt/xos/core/models |
| 53 | # - ../../xos/xos/tosca:/opt/xos/tosca |
| 54 | # - ../../xos/xos/xos:/opt/xos/xos |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 55 | |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 56 | xos_synchronizer_onboarding: |
Scott Baker | d25ae9f | 2016-10-20 15:43:33 -0700 | [diff] [blame] | 57 | image: xosproject/xos |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 58 | networks: |
| 59 | - xos |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 60 | command: bash -c "cd /opt/xos/synchronizers/onboarding; ./run.sh" |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 61 | labels: |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 62 | org.xosproject.kind: synchronizer |
| 63 | org.xosproject.target: onboarding |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 64 | links: |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 65 | - xos_db |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 66 | volumes: |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 67 | - /var/run/docker.sock:/var/run/docker.sock |
| 68 | - ./key_import:/opt/xos/key_import:ro |
| 69 | - ./onboarding-docker-compose:/opt/xos/synchronizers/onboarding/docker-compose |
| 70 | - ../../xos_services:/opt/xos_services |
| 71 | - ../../xos_libraries:/opt/xos_libraries |
| 72 | logging: |
| 73 | driver: "json-file" |
| 74 | options: |
| 75 | max-size: "1000k" |
| 76 | max-file: "5" |
| 77 | |