blob: 3a15e48b979939bb11352a48cf605376b7076b5d [file] [log] [blame]
Zack Williamsb74c9142016-12-14 17:07:12 -07001---
2version: '2'
3
4networks:
5 xos:
6 external: true
7
8services:
9 xos_db:
Scott Baker50421662016-06-27 22:09:48 -070010 image: xosproject/xos-postgres
Zack Williamsb74c9142016-12-14 17:07:12 -070011 networks:
12 - xos
Scott Baker50421662016-06-27 22:09:48 -070013 expose:
Zack Williamsb74c9142016-12-14 17:07:12 -070014 - "5432"
Scott Baker50421662016-06-27 22:09:48 -070015
Zack Williamsb74c9142016-12-14 17:07:12 -070016 xos_redis:
Matteo Scandolod23b7bd2016-11-18 15:52:45 -080017 image: redis
Zack Williamsb74c9142016-12-14 17:07:12 -070018 networks:
19 - xos
Matteo Scandolod23b7bd2016-11-18 15:52:45 -080020 ports:
Zack Williamsb74c9142016-12-14 17:07:12 -070021 - "6379:6379"
Matteo Scandolod23b7bd2016-11-18 15:52:45 -080022
Zack Williamsb74c9142016-12-14 17:07:12 -070023 xos_bootstrap_ui:
Scott Baker50421662016-06-27 22:09:48 -070024 image: xosproject/xos
Zack Williamsb74c9142016-12-14 17:07:12 -070025 networks:
26 - xos
Matteo Scandolo6fde7182016-07-13 12:03:00 -070027 # command: sleep 86400
Matteo Scandoloa317b872017-01-10 12:02:41 -080028 command: python /opt/xos/manage.py runserver 0.0.0.0:9001 --insecure --makemigrations
Scott Baker50421662016-06-27 22:09:48 -070029 environment:
Zack Williamsb74c9142016-12-14 17:07:12 -070030 - CONFIG_DIR
Scott Baker50421662016-06-27 22:09:48 -070031 ports:
Matteo Scandoloa317b872017-01-10 12:02:41 -080032 - "9001:9001"
Scott Baker50421662016-06-27 22:09:48 -070033 links:
Zack Williamsb74c9142016-12-14 17:07:12 -070034 - xos_db
35 - xos_redis:redis
Scott Baker50421662016-06-27 22:09:48 -070036 volumes:
37 - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config
Scott Baker7ab02212016-06-29 14:12:15 -070038 - ../cord-pod/files/xos_vtn_config:/opt/xos/xos_configuration/xos_vtn_config:ro
Scott Bakerd0c49fd2016-12-13 11:48:59 -080039 - ../common/tosca/fixtures.yaml:/opt/xos/bootstrap_tosca/fixtures.yaml
40 - ./deployment.yaml:/opt/xos/bootstrap_tosca/deployment.yaml
Matteo Scandolo6fde7182016-07-13 12:03:00 -070041 - ../../xos/xos/api/utility:/opt/xos/api/utility
Matteo Scandolo6b3ee5d2016-08-05 10:49:09 -070042 - ../../xos/xos/templates:/opt/xos/templates
Matteo Scandolo4e3bc2a2016-07-22 11:19:19 -070043 - ../../xos/xos/core/templatetags:/opt/xos/core/templatetags
Matteo Scandolofade3ec2016-08-02 10:17:53 -070044 - ../../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 Williamsb74c9142016-12-14 17:07:12 -070048
Matteo Scandolo6b3ee5d2016-08-05 10:49:09 -070049 # 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 Baker50421662016-06-27 22:09:48 -070055
Zack Williamsb74c9142016-12-14 17:07:12 -070056 xos_synchronizer_onboarding:
Scott Bakerd25ae9f2016-10-20 15:43:33 -070057 image: xosproject/xos
Zack Williamsb74c9142016-12-14 17:07:12 -070058 networks:
59 - xos
Scott Baker50421662016-06-27 22:09:48 -070060 command: bash -c "cd /opt/xos/synchronizers/onboarding; ./run.sh"
Scott Baker50421662016-06-27 22:09:48 -070061 labels:
Zack Williamsb74c9142016-12-14 17:07:12 -070062 org.xosproject.kind: synchronizer
63 org.xosproject.target: onboarding
Scott Baker50421662016-06-27 22:09:48 -070064 links:
Zack Williamsb74c9142016-12-14 17:07:12 -070065 - xos_db
Scott Baker50421662016-06-27 22:09:48 -070066 volumes:
Zack Williamsb74c9142016-12-14 17:07:12 -070067 - /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