|
| 1 | +version: '3.8' |
| 2 | + |
| 3 | +services: |
| 4 | + |
| 5 | + # DDS Discovery |
| 6 | + fast_dds_discovery: |
| 7 | + container_name: fast_dds_discovery |
| 8 | + image: ghcr.io/mkipnis/distributed_ats:latest |
| 9 | + command: > |
| 10 | + bash -c "LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/fastdds discovery -q 51000" |
| 11 | + ports: |
| 12 | + - "51000:51000" |
| 13 | + restart: no |
| 14 | + |
| 15 | + |
| 16 | + # FIX Gateways |
| 17 | + fix_gateway_1: |
| 18 | + container_name: distributed_ats |
| 19 | + image: ghcr.io/mkipnis/multi_matching_engine_ats:latest |
| 20 | + depends_on: |
| 21 | + - fast_dds_discovery |
| 22 | + command: > |
| 23 | + bash -c "/usr/local/bin/FIXGateway -c /usr/local/MiscATS/MultiMatchingEngineATS/config/fix_gwy_1.cfg" |
| 24 | + environment: |
| 25 | + - LOG_FILE_NAME=fix_gateway_1.log |
| 26 | + volumes: |
| 27 | + - ./logs:/var/log |
| 28 | + ports: |
| 29 | + - "15001:15001" |
| 30 | + restart: no |
| 31 | + |
| 32 | + fix_gateway_2: |
| 33 | + container_name: fix_gateway_2 |
| 34 | + image: ghcr.io/mkipnis/multi_matching_engine_ats:latest |
| 35 | + depends_on: |
| 36 | + - fast_dds_discovery |
| 37 | + command: > |
| 38 | + bash -c "/usr/local/bin/FIXGateway -c /usr/local/MiscATS/MultiMatchingEngineATS/config/fix_gwy_2.cfg" |
| 39 | + environment: |
| 40 | + - LOG_FILE_NAME=fix_gateway_2.log |
| 41 | + volumes: |
| 42 | + - ./logs:/var/log |
| 43 | + ports: |
| 44 | + - "16001:16001" |
| 45 | + restart: no |
| 46 | + |
| 47 | + |
| 48 | + # Data Services |
| 49 | + data_service_a: |
| 50 | + container_name: data_service_a |
| 51 | + image: ghcr.io/mkipnis/multi_matching_engine_ats:latest |
| 52 | + depends_on: |
| 53 | + - fast_dds_discovery |
| 54 | + command: > |
| 55 | + bash -c "/usr/local/bin/DataService -c /usr/local/MiscATS/MultiMatchingEngineATS/config/data_service_a.ini" |
| 56 | + environment: |
| 57 | + - LOG_FILE_NAME=data_service_a.log |
| 58 | + volumes: |
| 59 | + - ./logs:/var/log |
| 60 | + restart: no |
| 61 | + |
| 62 | + data_service_b: |
| 63 | + container_name: data_service_b |
| 64 | + image: ghcr.io/mkipnis/multi_matching_engine_ats:latest |
| 65 | + depends_on: |
| 66 | + - fast_dds_discovery |
| 67 | + command: > |
| 68 | + bash -c "/usr/local/bin/DataService -c /usr/local/MiscATS/MultiMatchingEngineATS/config/data_service_b.ini" |
| 69 | + environment: |
| 70 | + - LOG_FILE_NAME=data_service_b.log |
| 71 | + volumes: |
| 72 | + - ./logs:/var/log |
| 73 | + restart: no |
| 74 | + |
| 75 | + |
| 76 | + # Matching Engines |
| 77 | + matching_engine_market_y: |
| 78 | + container_name: market_y |
| 79 | + image: ghcr.io/mkipnis/multi_matching_engine_ats:latest |
| 80 | + depends_on: |
| 81 | + - fast_dds_discovery |
| 82 | + command: > |
| 83 | + bash -c "/usr/local/bin/MatchingEngine -c /usr/local/MiscATS/MultiMatchingEngineATS/config/matching_engine_MARKET_Y.ini" |
| 84 | + environment: |
| 85 | + - LOG_FILE_NAME=matching_engine_MARKET_Y.ini |
| 86 | + volumes: |
| 87 | + - ./logs:/var/log |
| 88 | + restart: no |
| 89 | + |
| 90 | + matching_engine_market_z: |
| 91 | + container_name: market_z |
| 92 | + image: ghcr.io/mkipnis/multi_matching_engine_ats:latest |
| 93 | + depends_on: |
| 94 | + - fast_dds_discovery |
| 95 | + command: > |
| 96 | + bash -c "/usr/local/bin/MatchingEngine -c /usr/local/MiscATS/MultiMatchingEngineATS/config/matching_engine_MARKET_Z.ini" |
| 97 | + environment: |
| 98 | + - LOG_FILE_NAME=matching_engine_MARKET_Z.ini |
| 99 | + volumes: |
| 100 | + - ./logs:/var/log |
| 101 | + restart: no |
0 commit comments