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: |
Andy Bavier | 094e716 | 2016-11-02 17:01:22 -0400 | [diff] [blame] | 10 | image: xosproject/xos-postgres |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 11 | networks: |
| 12 | - xos |
Andy Bavier | 094e716 | 2016-11-02 17:01:22 -0400 | [diff] [blame] | 13 | expose: |
| 14 | - "5432" |
| 15 | |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 16 | xos_bootstrap_ui: |
Andy Bavier | 094e716 | 2016-11-02 17:01:22 -0400 | [diff] [blame] | 17 | image: xosproject/xos |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 18 | networks: |
| 19 | - xos |
Andy Bavier | 094e716 | 2016-11-02 17:01:22 -0400 | [diff] [blame] | 20 | command: python /opt/xos/manage.py runserver 0.0.0.0:9998 --insecure --makemigrations |
| 21 | environment: |
| 22 | - CONFIG_DIR |
| 23 | ports: |
| 24 | - "9998:9998" |
| 25 | links: |
| 26 | - xos_db |
| 27 | volumes: |
| 28 | - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config |
| 29 | - ../cord-pod/files/xos_vtn_config:/opt/xos/xos_configuration/xos_vtn_config:ro |
| 30 | - ../../xos/xos/api/utility:/opt/xos/api/utility |
| 31 | - ../../xos/xos/templates:/opt/xos/templates |
| 32 | - ../../xos/xos/core/templatetags:/opt/xos/core/templatetags |
| 33 | - ../../xos/xos/core/xoslib/dashboards:/opt/xos/core/xoslib/dashboards |
| 34 | - ../../xos/xos/core/xoslib/static/css:/opt/xos/core/xoslib/static/css |
| 35 | - ../../xos/xos/core/xoslib/static/images:/opt/xos/core/xoslib/static/images |
| 36 | - ../../xos/xos/core/xoslib/static/js:/opt/xos/core/xoslib/static/js |
| 37 | |
| 38 | # The following volumes are sometimes used in development, |
| 39 | # but they are not tested and they can break part of the system, handle with care. |
| 40 | # - ../../xos_services:/opt/xos_services |
| 41 | # - ../../xos/xos/core/models:/opt/xos/core/models |
| 42 | # - ../../xos/xos/tosca:/opt/xos/tosca |
| 43 | # - ../../xos/xos/xos:/opt/xos/xos |
| 44 | |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 45 | xos_synchronizer_onboarding: |
Andy Bavier | 094e716 | 2016-11-02 17:01:22 -0400 | [diff] [blame] | 46 | image: xosproject/xos |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 47 | networks: |
| 48 | - xos |
Andy Bavier | 094e716 | 2016-11-02 17:01:22 -0400 | [diff] [blame] | 49 | command: bash -c "cd /opt/xos/synchronizers/onboarding; ./run.sh" |
| 50 | labels: |
| 51 | org.xosproject.kind: synchronizer |
| 52 | org.xosproject.target: onboarding |
| 53 | links: |
| 54 | - xos_db |
| 55 | volumes: |
| 56 | - /var/run/docker.sock:/var/run/docker.sock |
| 57 | - ./key_import:/opt/xos/key_import:ro |
| 58 | - ./onboarding-docker-compose:/opt/xos/synchronizers/onboarding/docker-compose |
| 59 | - ../../xos_services:/opt/xos_services |
Matteo Scandolo | 8710436 | 2016-11-10 15:04:21 -0800 | [diff] [blame] | 60 | - ../../xos_libraries:/opt/xos_libraries |
Zack Williams | b74c914 | 2016-12-14 17:07:12 -0700 | [diff] [blame] | 61 | logging: |
| 62 | driver: "json-file" |
| 63 | options: |
| 64 | max-size: "1000k" |
| 65 | max-file: "5" |
| 66 | |