|
| 1 | +version: '3.1' |
| 2 | + |
| 3 | +services: |
| 4 | + fluentd-logger: |
| 5 | + container_name: fluentd-logger |
| 6 | + image: loopchain-fluentd:latest |
| 7 | + volumes: |
| 8 | + - ${LOG_PATH}:/fluentd/log |
| 9 | + ports: |
| 10 | + - 24224:24224 |
| 11 | + networks: |
| 12 | + - loopchain |
| 13 | + radio_station: |
| 14 | + container_name: radio_station |
| 15 | + image: looprs:${TAG} |
| 16 | + env_file: ./env_${TAG}.list |
| 17 | + depends_on: |
| 18 | + - fluentd-logger |
| 19 | + ports: |
| 20 | + - 7102:7102 |
| 21 | + - 9002:9002 |
| 22 | + command: python3 radiostation.py |
| 23 | + logging: |
| 24 | + driver: fluentd |
| 25 | + options: |
| 26 | + fluentd-address: localhost:24224 |
| 27 | + networks: |
| 28 | + - loopchain |
| 29 | + peer0: |
| 30 | + container_name: peer0 |
| 31 | + image: looppeer:${TAG} |
| 32 | + env_file: ./env_${TAG}.list |
| 33 | + depends_on: |
| 34 | + - fluentd-logger |
| 35 | + - radio_station |
| 36 | + links: |
| 37 | + - radio_station |
| 38 | + ports: |
| 39 | + - 7100:7100 |
| 40 | + - 9000:9000 |
| 41 | + volumes: |
| 42 | + - ./score_key:/root/.ssh/id_rsa:ro |
| 43 | + command: python3 peer.py -c ${DEPLOY_SCORE} -r radio_station -p 7100 |
| 44 | + logging: |
| 45 | + driver: fluentd |
| 46 | + options: |
| 47 | + fluentd-address: localhost:24224 |
| 48 | + networks: |
| 49 | + - loopchain |
| 50 | + peer1: |
| 51 | + container_name: peer1 |
| 52 | + image: looppeer:${TAG} |
| 53 | + env_file: ./env_${TAG}.list |
| 54 | + depends_on: |
| 55 | + - fluentd-logger |
| 56 | + - radio_station |
| 57 | + links: |
| 58 | + - radio_station |
| 59 | + ports: |
| 60 | + - 7200:7200 |
| 61 | + - 9100:9100 |
| 62 | + volumes: |
| 63 | + - ./score_key:/root/.ssh/id_rsa:ro |
| 64 | + command: python3 peer.py -c ${DEPLOY_SCORE} -r radio_station -p 7200 |
| 65 | + logging: |
| 66 | + driver: fluentd |
| 67 | + options: |
| 68 | + fluentd-address: localhost:24224 |
| 69 | + networks: |
| 70 | + - loopchain |
| 71 | + peer2: |
| 72 | + container_name: peer2 |
| 73 | + image: looppeer:${TAG} |
| 74 | + env_file: ./env_${TAG}.list |
| 75 | + depends_on: |
| 76 | + - fluentd-logger |
| 77 | + - radio_station |
| 78 | + links: |
| 79 | + - radio_station |
| 80 | + ports: |
| 81 | + - 7300:7300 |
| 82 | + - 9200:9200 |
| 83 | + volumes: |
| 84 | + - ./score_key:/root/.ssh/id_rsa:ro |
| 85 | + command: python3 peer.py -c ${DEPLOY_SCORE} -r radio_station -p 7300 |
| 86 | + networks: |
| 87 | + - loopchain |
| 88 | + logging: |
| 89 | + driver: fluentd |
| 90 | + options: |
| 91 | + fluentd-address: localhost:24224 |
| 92 | + |
| 93 | + peer3: |
| 94 | + container_name: peer3 |
| 95 | + image: looppeer:${TAG} |
| 96 | + env_file: ./env_${TAG}.list |
| 97 | + depends_on: |
| 98 | + - fluentd-logger |
| 99 | + - radio_station |
| 100 | + links: |
| 101 | + - radio_station |
| 102 | + ports: |
| 103 | + - 7400:7400 |
| 104 | + - 9300:9300 |
| 105 | + volumes: |
| 106 | + - ./score_key:/root/.ssh/id_rsa:ro |
| 107 | + command: python3 peer.py -c ${DEPLOY_SCORE} -r radio_station -d -p 7400 |
| 108 | + logging: |
| 109 | + driver: fluentd |
| 110 | + options: |
| 111 | + fluentd-address: localhost:24224 |
| 112 | + networks: |
| 113 | + - loopchain |
| 114 | + peer4: |
| 115 | + container_name: peer4 |
| 116 | + image: looppeer:${TAG} |
| 117 | + env_file: ./env_${TAG}.list |
| 118 | + depends_on: |
| 119 | + - fluentd-logger |
| 120 | + - radio_station |
| 121 | + links: |
| 122 | + - radio_station |
| 123 | + ports: |
| 124 | + - 7500:7500 |
| 125 | + - 9350:9350 |
| 126 | + volumes: |
| 127 | + - ./score_key:/root/.ssh/id_rsa:ro |
| 128 | + command: python3 peer.py -c ${DEPLOY_SCORE} -r radio_station -d -p 7500 |
| 129 | + logging: |
| 130 | + driver: fluentd |
| 131 | + options: |
| 132 | + fluentd-address: localhost:24224 |
| 133 | + networks: |
| 134 | + - loopchain |
| 135 | + peer5: |
| 136 | + container_name: peer5 |
| 137 | + image: looppeer:${TAG} |
| 138 | + env_file: ./env_${TAG}.list |
| 139 | + depends_on: |
| 140 | + - fluentd-logger |
| 141 | + - radio_station |
| 142 | + links: |
| 143 | + - radio_station |
| 144 | + ports: |
| 145 | + - 7600:7600 |
| 146 | + - 9400:9400 |
| 147 | + volumes: |
| 148 | + - ./score_key:/root/.ssh/id_rsa:ro |
| 149 | + command: python3 peer.py -c ${DEPLOY_SCORE} -r radio_station -d -p 7600 |
| 150 | + networks: |
| 151 | + - loopchain |
| 152 | + logging: |
| 153 | + driver: fluentd |
| 154 | + options: |
| 155 | + fluentd-address: localhost:24224 |
| 156 | + |
| 157 | +networks: |
| 158 | + loopchain: |
| 159 | + external: true |
0 commit comments