blob: da9562e9d6bbde557c5472239e17aeb9c4ed1bbd [file] [log] [blame]
Scott Baker50421662016-06-27 22:09:48 -07001xos_db:
2 image: xosproject/xos-postgres
3 expose:
4 - "5432"
5
6xos_synchronizer_openstack:
7 command: bash -c "sleep 120; python /opt/xos/synchronizers/openstack/xos-synchronizer.py"
8 image: xosproject/xos-synchronizer-openstack
9 labels:
10 org.xosproject.kind: synchronizer
11 org.xosproject.target: openstack
12 links:
13 - xos_db
14 extra_hosts:
15 - ctl:${MYIP}
16 volumes:
17 - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config:ro
18 - ./xos_cord_config:/opt/xos/xos_configuration/xos_cord_config:ro
19 - ../setup:/root/setup:ro
20
21xos_synchronizer_monitoring_channel:
22 image: xosproject/xos-synchronizer-openstack
23 command: bash -c "sleep 120; python /opt/xos/synchronizers/monitoring_channel/monitoring_channel_synchronizer.py -C /opt/xos/synchronizers/monitoring_channel/monitoring_channel_synchronizer_config"
24 labels:
25 org.xosproject.kind: synchronizer
26 org.xosproject.target: monitoring_channel
27 links:
28 - xos_db
29 extra_hosts:
30 - ctl:${MYIP}
31 volumes:
32 - ../setup/id_rsa:/opt/xos/synchronizers/monitoring_channel/monitoring_channel_private_key:ro # private key
33
34#Ensure exampleservice is enabled in xos/tools/xos-manage and xos/settings.py file before uncommenting below lines
35#xos_synchronizer_exampleservice:
36# image: xosproject/xos-synchronizer-openstack
37# command: bash -c "sleep 120; python /opt/xos/synchronizers/exampleservice/exampleservice-synchronizer.py -C /opt/xos/synchronizers/exampleservice/exampleservice_config"
38# labels:
39# org.xosproject.kind: synchronizer
40# org.xosproject.target: exampleservice
41# links:
42# - xos_db
43# volumes:
44# - ../setup:/root/setup:ro
45# - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config:ro
46# - ../setup/id_rsa:/opt/xos/synchronizers/exampleservice/exampleservice_private_key:ro
47
48# FUTURE
49#xos_swarm_synchronizer:
50# image: xosproject/xos-swarm-synchronizer
51# labels:
52# org.xosproject.kind: synchronizer
53# org.xosproject.target: swarm
54
55xos:
56 image: xosproject/xos
57 command: python /opt/xos/manage.py runserver 0.0.0.0:8000 --insecure --makemigrations
58 ports:
59 - "9999:8000"
60 links:
61 - xos_db
62 volumes:
63 - ../setup:/root/setup:ro
64 - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config:ro
65 - ./xos_cord_config:/opt/xos/xos_configuration/xos_cord_config:ro
66 - ../setup/id_rsa.pub:/opt/xos/synchronizers/monitoring_channel/monitoring_channel_public_key:ro
67# - ../setup/id_rsa.pub:/opt/xos/synchronizers/exampleservice/exampleservice_public_key:ro