Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 1 | version: '2' |
| 2 | services: |
| 3 | # |
| 4 | # Single-node consul agent |
| 5 | # |
| 6 | consul: |
| 7 | image: consul:latest |
| 8 | command: agent -server -bootstrap -client 0.0.0.0 -ui |
| 9 | ports: |
| 10 | - "8300:8300" |
| 11 | - "8400:8400" |
| 12 | - "8500:8500" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 13 | - "8600:8600/udp" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 14 | environment: |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 15 | #SERVICE_53_IGNORE: "yes" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 16 | SERVICE_8300_IGNORE: "yes" |
| 17 | SERVICE_8400_IGNORE: "yes" |
| 18 | SERVICE_8500_NAME: "consul-rest" |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 19 | # |
| 20 | # Registrator |
| 21 | # |
| 22 | registrator: |
| 23 | image: gliderlabs/registrator:latest |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 24 | command: [ |
| 25 | "-ip=${DOCKER_HOST_IP}", |
| 26 | "-retry-attempts", "100", |
| 27 | # "-internal", |
| 28 | "consul://consul:8500" |
| 29 | ] |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 30 | links: |
| 31 | - consul |
| 32 | volumes: |
| 33 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 34 | # |
| 35 | # Fluentd log server |
| 36 | # |
| 37 | fluentd: |
| 38 | image: fluent/fluentd |
| 39 | ports: |
| 40 | - "24224:24224" |
| 41 | volumes: |
| 42 | - "/tmp/fluentd:/fluentd/log" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 43 | environment: |
| 44 | SERVICE_24224_NAME: "fluentd-intake" |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 45 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 46 | # Voltha server instance(s) |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 47 | # |
| 48 | voltha: |
| 49 | image: cord/voltha |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 50 | command: [ |
| 51 | "/voltha/main.py", |
| 52 | "-v", |
| 53 | "--consul=consul:8500", |
| 54 | "--fluentd=fluentd:24224", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 55 | "--rest-port=8880", |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 56 | "--grpc-port=50555", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 57 | "--instance-id-is-container-name", |
| 58 | "-v" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 59 | ] |
| 60 | ports: |
| 61 | - 8880 |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 62 | - 50555 |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 63 | depends_on: |
| 64 | - consul |
| 65 | links: |
| 66 | - consul |
| 67 | - fluentd |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 68 | environment: |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 69 | SERVICE_8880_NAME: "voltha-health" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 70 | SERVICE_8880_CHECK_HTTP: "/health" |
| 71 | SERVICE_8880_CHECK_INTERVAL: "5s" |
| 72 | SERVICE_8880_CHECK_TIMEOUT: "1s" |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 73 | SERVICE_50555_NAME: "voltha-grpc" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 74 | volumes: |
| 75 | - "/var/run/docker.sock:/tmp/docker.sock" |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 76 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 77 | # Chameleon server instance(s) |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 78 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 79 | chameleon: |
| 80 | image: cord/chameleon |
| 81 | command: [ |
| 82 | "/chameleon/main.py", |
| 83 | "-v", |
| 84 | "--fluentd=fluentd:24224", |
| 85 | "--rest-port=8881", |
| 86 | "--instance-id-is-container-name", |
| 87 | "-v" |
| 88 | ] |
| 89 | ports: |
| 90 | - 8881 |
| 91 | depends_on: |
| 92 | - consul |
| 93 | links: |
| 94 | - consul |
| 95 | - fluentd |
| 96 | environment: |
| 97 | SERVICE_8881_NAME: "chameleon-rest" |
| 98 | volumes: |
| 99 | - "/var/run/docker.sock:/tmp/docker.sock" |