blob: 9e27ffe3a0397dc9eb9ad28d9477c9c286789e6f [file] [log] [blame]
Richard Jankowskie8eba492017-07-04 16:00:21 -04001#
2# This Docker stackfile deploys a chameleon swarm, one container per node.
3#
4# Chameleon depends on the following being present:
5# - the 'voltha_net' overlay network
6# - the Voltha service
7#
8# To deploy the stack, issue the command:
9#
10# docker stack deploy -c docker-compose-chameleon-swarm.yml chameleon
11#
12
13version: "3"
14services:
15 chameleon:
16 image: cord/chameleon:latest
17 deploy:
18 mode: global
19 environment:
20 SERVICE_8881_NAME: "chameleon-rest"
21 entrypoint:
22 - /chameleon/chameleon/main.py
23 - -v
24 - --consul=consul:8500
25 - --fluentd=fluentd:24224
26 - --rest-port=8881
Sergio Slobodrianc1989d62017-08-05 18:48:34 -040027 - --grpc-endpoint=vcore:50556
Richard Jankowskie8eba492017-07-04 16:00:21 -040028 - --instance-id-is-container-name
29 networks:
30 - voltha-net
31 ports:
32 - "8881:8881"
33 volumes:
34 - /var/run/docker.sock:/tmp/docker.sock
35
36networks:
37 voltha-net:
38 external:
39 name: voltha_net
40