github.com/google/fleetspeak@v0.1.15-0.20240426164851-4f31f62c1aea/sandboxes/direct-mtls-mode/docker-compose.yaml (about)

     1  services:
     2  
     3    mysql-server:
     4      image: mysql:8.2
     5      restart: always
     6      hostname: mysql-server
     7      environment:
     8        MYSQL_DATABASE: 'fleetspeak'
     9        MYSQL_USER: 'fleetspeak-user'
    10        MYSQL_PASSWORD: 'fleetspeak-password'
    11        MYSQL_ROOT_PASSWORD: 'password'
    12      ports:
    13        - '3306:3306'
    14      expose:
    15        - '3306'
    16      healthcheck:
    17        test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
    18        timeout: 5s
    19        retries: 10
    20  
    21    fleetspeak-server:
    22      build:
    23        context: .
    24        dockerfile: ../shared/fleetspeak-server/Dockerfile
    25      hostname: fleetspeak-frontend
    26      depends_on:
    27        mysql-server:
    28          condition: service_healthy
    29      entrypoint: ["/app/bin/server", "-components_config", "/config/fleetspeak-server/components.textproto", "-services_config", "/config/fleetspeak-server/services.textproto", "-alsologtostderr"]
    30      volumes:
    31        - "./config:/config"
    32      ports:
    33        - '9090:9090'
    34        - '9091:9091'
    35        - '8080:8080'
    36      expose:
    37        - '9090'
    38        - '9091'
    39        - '8080'
    40      healthcheck:
    41        test: ["CMD", "curl", "http://localhost:8080"]
    42        timeout: 5s
    43        retries: 10
    44  
    45    fleetspeak-client:
    46      build:
    47        context: .
    48        dockerfile: ../shared/fleetspeak-client/Dockerfile
    49      hostname: fleetspeak-client
    50      depends_on:
    51        fleetspeak-server:
    52          condition: service_healthy
    53      entrypoint: ["/app/bin/client", "-config", "/config/fleetspeak-client/config.textproto", "-alsologtostderr"]
    54      volumes:
    55        - "./config:/config"