github.com/imyousuf/webhook-broker@v0.1.2/docker-compose.integration-test.yaml (about)

     1  version: "3.9"
     2  
     3  services:
     4    mysql8:
     5      image: mysql:8
     6      container_name: mysql8
     7      environment:
     8        MYSQL_ROOT_PASSWORD: root
     9        MYSQL_DATABASE: webhook-broker
    10        MYSQL_USER: webhook_broker
    11        MYSQL_PASSWORD: zxc909zxc
    12      ports:
    13        - "45060:3306"
    14      healthcheck:
    15        test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
    16        interval: 30s
    17        timeout: 20s
    18        retries: 10
    19        start_period: 20s
    20      networks:
    21        brokeritest:
    22          aliases:
    23            - "mysql8"
    24  
    25  
    26    ibroker:
    27      build: .
    28      container_name: ibroker
    29      volumes:
    30        - ./webhook-broker-dc.cfg:/webhook-broker.cfg
    31      command: ["./webhook-broker", "-migrate", "./migration/sqls/"]
    32      depends_on:
    33        mysql8:
    34          condition: service_healthy
    35      links:
    36        - mysql8:mysql
    37      ports:
    38        - "31818:8080"
    39      healthcheck:
    40        test: ["CMD", "curl", "-f", "http://localhost:8080/_status"]
    41        interval: 3s
    42        timeout: 10s
    43        retries: 3
    44        start_period: 2s
    45      networks:
    46        brokeritest:
    47          aliases:
    48            - "webhook-broker"
    49  
    50    tester:
    51      build: integration-test/.
    52      container_name: tester
    53      command: ["make", "run"]
    54      depends_on:
    55        ibroker:
    56          condition: service_healthy
    57      links:
    58        - ibroker:webhook-broker
    59      networks:
    60        brokeritest:
    61          aliases:
    62            - "tester"
    63  
    64  networks:
    65    brokeritest: