Richard Jankowski | e8eba49 | 2017-07-04 16:00:21 -0400 | [diff] [blame] | 1 | # |
| 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 | |
| 13 | version: "3" |
| 14 | services: |
| 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 |
| 27 | - --grpc-endpoint=voltha:50555 |
| 28 | - --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 | |
| 36 | networks: |
| 37 | voltha-net: |
| 38 | external: |
| 39 | name: voltha_net |
| 40 | |