blob: 672033f46e1bc1728a576f0bb9fcf473cea67f73 [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"
Matteo Scandolo76d7bcd2016-11-30 17:08:17 -080015 ports:
Zack Williamsb74c9142016-12-14 17:07:12 -070016 - "5432:5432"
Scott Baker50421662016-06-27 22:09:48 -070017
Zack Williamsb74c9142016-12-14 17:07:12 -070018 xos_redis:
Matteo Scandolod23b7bd2016-11-18 15:52:45 -080019 image: redis
Zack Williamsb74c9142016-12-14 17:07:12 -070020 networks:
21 - xos
Matteo Scandolod23b7bd2016-11-18 15:52:45 -080022 ports:
Zack Williamsb74c9142016-12-14 17:07:12 -070023 - "6379:6379"
Matteo Scandolod23b7bd2016-11-18 15:52:45 -080024
Zack Williamsb74c9142016-12-14 17:07:12 -070025 xos_bootstrap_ui:
Scott Baker50421662016-06-27 22:09:48 -070026 image: xosproject/xos
Zack Williamsb74c9142016-12-14 17:07:12 -070027 networks:
28 - xos
Matteo Scandolo6fde7182016-07-13 12:03:00 -070029 # command: sleep 86400
Scott Baker50421662016-06-27 22:09:48 -070030 command: python /opt/xos/manage.py runserver 0.0.0.0:9998 --insecure --makemigrations
31 environment:
Zack Williamsb74c9142016-12-14 17:07:12 -070032 - CONFIG_DIR
Scott Baker50421662016-06-27 22:09:48 -070033 ports:
Zack Williamsb74c9142016-12-14 17:07:12 -070034 - "9998:9998"
Scott Baker50421662016-06-27 22:09:48 -070035 links:
Zack Williamsb74c9142016-12-14 17:07:12 -070036 - xos_db
37 - xos_redis:redis
Scott Baker50421662016-06-27 22:09:48 -070038 volumes:
39 - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config
Scott Baker7ab02212016-06-29 14:12:15 -070040 - ../cord-pod/files/xos_vtn_config:/opt/xos/xos_configuration/xos_vtn_config:ro
Scott Bakerd0c49fd2016-12-13 11:48:59 -080041 - ../common/tosca/fixtures.yaml:/opt/xos/bootstrap_tosca/fixtures.yaml
42 - ./deployment.yaml:/opt/xos/bootstrap_tosca/deployment.yaml
Matteo Scandolo6fde7182016-07-13 12:03:00 -070043 - ../../xos/xos/api/utility:/opt/xos/api/utility
Matteo Scandolo6b3ee5d2016-08-05 10:49:09 -070044 - ../../xos/xos/templates:/opt/xos/templates
Matteo Scandolo4e3bc2a2016-07-22 11:19:19 -070045 - ../../xos/xos/core/templatetags:/opt/xos/core/templatetags
Matteo Scandolofade3ec2016-08-02 10:17:53 -070046 - ../../xos/xos/core/xoslib/dashboards:/opt/xos/core/xoslib/dashboards
47 - ../../xos/xos/core/xoslib/static/css:/opt/xos/core/xoslib/static/css
48 - ../../xos/xos/core/xoslib/static/images:/opt/xos/core/xoslib/static/images
49 - ../../xos/xos/core/xoslib/static/js:/opt/xos/core/xoslib/static/js
Zack Williamsb74c9142016-12-14 17:07:12 -070050
Matteo Scandolo6b3ee5d2016-08-05 10:49:09 -070051 # The following volumes are sometimes used in development,
52 # but they are not tested and they can break part of the system, handle with care.
53 # - ../../xos_services:/opt/xos_services
54 # - ../../xos/xos/core/models:/opt/xos/core/models
55 # - ../../xos/xos/tosca:/opt/xos/tosca
56 # - ../../xos/xos/xos:/opt/xos/xos
Scott Baker50421662016-06-27 22:09:48 -070057
Zack Williamsb74c9142016-12-14 17:07:12 -070058 xos_synchronizer_onboarding:
Scott Bakerd25ae9f2016-10-20 15:43:33 -070059 image: xosproject/xos
Zack Williamsb74c9142016-12-14 17:07:12 -070060 networks:
61 - xos
Scott Baker50421662016-06-27 22:09:48 -070062 command: bash -c "cd /opt/xos/synchronizers/onboarding; ./run.sh"
Scott Baker50421662016-06-27 22:09:48 -070063 labels:
Zack Williamsb74c9142016-12-14 17:07:12 -070064 org.xosproject.kind: synchronizer
65 org.xosproject.target: onboarding
Scott Baker50421662016-06-27 22:09:48 -070066 links:
Zack Williamsb74c9142016-12-14 17:07:12 -070067 - xos_db
Scott Baker50421662016-06-27 22:09:48 -070068 volumes:
Zack Williamsb74c9142016-12-14 17:07:12 -070069 - /var/run/docker.sock:/var/run/docker.sock
70 - ./key_import:/opt/xos/key_import:ro
71 - ./onboarding-docker-compose:/opt/xos/synchronizers/onboarding/docker-compose
72 - ../../xos_services:/opt/xos_services
73 - ../../xos_libraries:/opt/xos_libraries
74 logging:
75 driver: "json-file"
76 options:
77 max-size: "1000k"
78 max-file: "5"
79