blob: 4707370c46d3167a6f1606d8ee0f24d25c34185c [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:
Andy Bavier094e7162016-11-02 17:01:22 -040010 image: xosproject/xos-postgres
Zack Williamsb74c9142016-12-14 17:07:12 -070011 networks:
12 - xos
Andy Bavier094e7162016-11-02 17:01:22 -040013 expose:
14 - "5432"
15
Zack Williamsb74c9142016-12-14 17:07:12 -070016 xos_bootstrap_ui:
Andy Bavier094e7162016-11-02 17:01:22 -040017 image: xosproject/xos
Zack Williamsb74c9142016-12-14 17:07:12 -070018 networks:
19 - xos
Matteo Scandoloa317b872017-01-10 12:02:41 -080020 command: python /opt/xos/manage.py runserver 0.0.0.0:9001 --insecure --makemigrations
Andy Bavier094e7162016-11-02 17:01:22 -040021 environment:
22 - CONFIG_DIR
23 ports:
Matteo Scandoloa317b872017-01-10 12:02:41 -080024 - "9001:9001"
Andy Bavier094e7162016-11-02 17:01:22 -040025 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 Williamsb74c9142016-12-14 17:07:12 -070045 xos_synchronizer_onboarding:
Andy Bavier094e7162016-11-02 17:01:22 -040046 image: xosproject/xos
Zack Williamsb74c9142016-12-14 17:07:12 -070047 networks:
48 - xos
Andy Bavier094e7162016-11-02 17:01:22 -040049 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 Scandolo87104362016-11-10 15:04:21 -080060 - ../../xos_libraries:/opt/xos_libraries
Zack Williamsb74c9142016-12-14 17:07:12 -070061 logging:
62 driver: "json-file"
63 options:
64 max-size: "1000k"
65 max-file: "5"
66