blob: 55e88ad84fd6b480114c097d8229b7eaa1e1c796 [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:
14 - "5432"
15
Zack Williamsb74c9142016-12-14 17:07:12 -070016 xos_redis:
Sapan Bhatia33d0add2016-08-31 18:31:55 +020017 image: redis
Zack Williamsb74c9142016-12-14 17:07:12 -070018 networks:
19 - xos
Matteo Scandolo82d64ac2017-01-13 09:49:35 -080020 ports:
21 - "6379:6379"
Zack Williamsb74c9142016-12-14 17:07:12 -070022 logging:
23 driver: "json-file"
24 options:
25 max-size: "1000k"
26 max-file: "5"
Sapan Bhatia33d0add2016-08-31 18:31:55 +020027
Zack Williamsb74c9142016-12-14 17:07:12 -070028 xos_synchronizer_onboarding:
Scott Bakerd25ae9f2016-10-20 15:43:33 -070029 image: xosproject/xos
Zack Williamsb74c9142016-12-14 17:07:12 -070030 networks:
31 - xos
Scott Baker50421662016-06-27 22:09:48 -070032 command: bash -c "cd /opt/xos/synchronizers/onboarding; ./run.sh"
33 #command: sleep 86400
34 labels:
35 org.xosproject.kind: synchronizer
36 org.xosproject.target: onboarding
37 links:
38 - xos_db
39 volumes:
40 - /var/run/docker.sock:/var/run/docker.sock
41 - ./key_import:/opt/xos/key_import:ro
42 - ./onboarding-docker-compose:/opt/xos/synchronizers/onboarding/docker-compose
43 - ../../xos_services:/opt/xos_services
Scott Bakerda3b1592016-10-24 10:45:36 -070044 - ../../xos_libraries:/opt/xos_libraries
Zack Williamsb74c9142016-12-14 17:07:12 -070045 logging:
46 driver: "json-file"
47 options:
48 max-size: "1000k"
49 max-file: "5"
Scott Baker50421662016-06-27 22:09:48 -070050
Zack Williamsb74c9142016-12-14 17:07:12 -070051 xos_bootstrap_ui:
Matteo Scandoloa317b872017-01-10 12:02:41 -080052 command: python /opt/xos/manage.py runserver 0.0.0.0:9001 --insecure --makemigrations
Scott Baker50421662016-06-27 22:09:48 -070053 environment:
54 - CONFIG_DIR
55 image: xosproject/xos
Zack Williamsb74c9142016-12-14 17:07:12 -070056 networks:
57 - xos
Scott Baker50421662016-06-27 22:09:48 -070058 links:
59 - xos_db
60 ports:
Matteo Scandoloa317b872017-01-10 12:02:41 -080061 - "9001:9001"
Scott Baker50421662016-06-27 22:09:48 -070062 volumes:
63 - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config:ro
64 - ./xos_cord_config:/opt/xos/xos_configuration/xos_cord_config:ro
Scott Baker04402d12016-06-28 12:46:27 -070065 - ./files/xos_vtn_config:/opt/xos/xos_configuration/xos_vtn_config:ro
Scott Baker50421662016-06-27 22:09:48 -070066 - ../../xos_services:/opt/xos_services
Zack Williamscf1f9c82016-11-08 22:19:02 -070067 - ./admin-openrc.sh:/root/setup/admin-openrc.sh
Scott Bakerd0c49fd2016-12-13 11:48:59 -080068 - ../common/tosca/fixtures.yaml:/opt/xos/bootstrap_tosca/fixtures.yaml
69 - ./deployment.yaml:/opt/xos/bootstrap_tosca/deployment.yaml
Zack Williamsb74c9142016-12-14 17:07:12 -070070 logging:
71 driver: "json-file"
72 options:
73 max-size: "1000k"
74 max-file: "5"
75