github.com/metaworking/channeld@v0.7.3/docker-compose.yml (about)

     1  version: '3'
     2  services:
     3    channeld:
     4      build: .
     5      image: channeld/channeld
     6      volumes:
     7      - channeld-vol:/var/log/channeld
     8      depends_on:
     9        - grafana
    10      ports:
    11        - "12108:12108"
    12      expose:
    13        - "8080"
    14        - "11288"
    15      entrypoint: [
    16        "./app", 
    17        "-cfsm=config/client_authoratative_fsm.json", 
    18        "-sfsm=config/server_authoratative_fsm.json",
    19        "-logfile=/var/log/channeld/{time}.log",
    20        "-profile=cpu", 
    21        "-profilepath=/var/log/channeld", 
    22        "-ct=1"]
    23    tps-channeld:
    24      build:
    25        context: .
    26        dockerfile: examples/channeld-ue-tps/Dockerfile
    27      image: channeld/tps-channeld
    28      volumes:
    29      - channeld-vol:/var/log/channeld
    30      depends_on:
    31        - grafana
    32      ports:
    33        - "12108:12108"
    34      expose:
    35        - "8080"
    36        - "11288"
    37      entrypoint: [
    38        "./app", 
    39        "-dev",
    40        "-cfsm=../../config/client_authoratative_fsm.json", 
    41        "-sfsm=../../config/server_authoratative_fsm.json",
    42        "-chs=../../config/channel_settings_hifi.json",
    43        "-loglevel=0",
    44        "-logfile=/var/log/channeld/{time}.log",
    45        # "-profile=cpu", 
    46        # "-profilepath=/var/log/channeld", 
    47        "-ct=0"]
    48    tps-server:
    49      image: channeld/tps-server
    50      depends_on:
    51        - tps-channeld
    52      volumes:
    53        - tps-server-vol:/LinuxServer/ChanneldIntegration/Saved
    54      expose:
    55        - "8081"
    56      environment:
    57        - CHANNELD_ADDR=tps-channeld
    58      entrypoint: "./ChanneldIntegrationServer.sh -server -log -metrics -trace -tracefile=/LinuxServer/ChanneldIntegration/Saved/test.utrace channeldServerAddr=tps-channeld"
    59    tps-client:
    60      image: channeld/tps-client
    61      depends_on:
    62        - tps-server
    63      expose:
    64        - "8081"
    65      environment:
    66        - CHANNELD_ADDR=tps-channeld
    67      # entrypoint: "./ChanneldIntegration.sh 127.0.0.1 -log channeldClientAddr=tps-channeld -nullrhi -FPS=5"
    68      deploy:
    69        resources:
    70          limits:
    71            cpus: "1.0"
    72            memory: 1024M
    73      scale: 3
    74    tanks:
    75      image: channeld/tanks
    76      depends_on:
    77        - channeld
    78      environment:
    79        - CHANNELD_IP=channeld
    80      entrypoint: ["./server.x86_64", "-sa", "channeld", "-spawnai", "500"]
    81    chat:
    82      profiles:
    83       - donotstart
    84      build:
    85        context: .
    86        dockerfile: examples/chat-rooms/Dockerfile
    87      image: channeld/chat
    88      volumes:
    89       - chat-vol:/var/log/chat
    90      depends_on:
    91        - grafana
    92      deploy:
    93        resources:
    94          limits:
    95            cpus: "3.5"
    96      ports:
    97        - "8080:8080"
    98        - "12108:12108"
    99      expose:
   100        - "8080"
   101        - "12108"
   102      entrypoint: ["./app", "-profile=cpu", "-dev", "-profilepath=/var/log/chat", "-ct=0", "-chs=../../config/channel_settings_lofi.json"]
   103    grafana:
   104      image: grafana/grafana
   105      depends_on:
   106        - prometheus
   107      ports:
   108        - "3000:3000"
   109      expose:
   110        - "3000"
   111    prometheus:
   112      image: prom/prometheus
   113      entrypoint: /bin/sh -c
   114      command: |
   115        'sh -s <<EOF
   116          cat > ./prometheus.yml <<EON
   117        global:
   118          scrape_interval:     2s
   119          evaluation_interval: 2s
   120        scrape_configs:
   121          - job_name: channeld
   122            static_configs:
   123            - targets: ['channeld:8080', 'chat:8080', 'tps-channeld:8080', 'tps-server:8081', 'tps-client:8081']
   124        EON
   125        prometheus --config.file=./prometheus.yml
   126        EOF'
   127      ports:
   128        - "9090:9090"
   129  volumes:
   130    channeld-vol:
   131    chat-vol:
   132    tps-server-vol: