blob: 0bfbd150942b5e500fc5b3a660121a12e94e9687 [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
David K. Bainbridge4e920b72017-10-12 07:49:14 -070019 logging:
20 driver: "json-file"
21 options:
22 max-size: "10m"
23 max-file: 3
Richard Jankowskie8eba492017-07-04 16:00:21 -040024 environment:
25 SERVICE_8881_NAME: "chameleon-rest"
26 entrypoint:
27 - /chameleon/chameleon/main.py
28 - -v
29 - --consul=consul:8500
30 - --fluentd=fluentd:24224
31 - --rest-port=8881
Sergio Slobodrianc1989d62017-08-05 18:48:34 -040032 - --grpc-endpoint=vcore:50556
Richard Jankowskie8eba492017-07-04 16:00:21 -040033 - --instance-id-is-container-name
34 networks:
35 - voltha-net
36 ports:
37 - "8881:8881"
38 volumes:
39 - /var/run/docker.sock:/tmp/docker.sock
40
41networks:
42 voltha-net:
43 external:
44 name: voltha_net
45