github.com/Accefy/pop@v0.0.0-20230428174248-e9f677eab5b9/docker-compose.yml (about)

     1  version: '2.1'
     2  
     3  services:
     4    mysql:
     5      image: mysql:5.7
     6      environment:
     7        - MYSQL_ROOT_PASSWORD=root#
     8        - MYSQL_DATABASE=pop_test
     9        - MYSQL_USER=pop
    10        - MYSQL_PASSWORD=pop#
    11      ports:
    12        - "3307:3306"
    13      healthcheck:
    14        test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
    15        interval: 5s
    16        timeout: 5s
    17        retries: 10
    18        start_period: 3s
    19  
    20    postgres:
    21      image: postgres:10
    22      environment:
    23        - POSTGRES_DB=pop_test
    24        - POSTGRES_USER=postgres
    25        - POSTGRES_PASSWORD=postgres#
    26        - POSTGRES_DB=postgres
    27      ports:
    28        - "5433:5432"
    29      healthcheck:
    30        test: ["CMD", "pg_isready"]
    31        interval: 5s
    32        timeout: 5s
    33        retries: 10
    34        start_period: 3s
    35  
    36    cockroach:
    37      image: cockroachdb/cockroach:latest-v21.1
    38      ports:
    39        - "26258:26257"
    40        - "8081:8080"
    41      #volumes:
    42        #- ./_vol/cockroach:/cockroach/cockroach-data
    43      command: start-single-node --insecure
    44      healthcheck:
    45        test: ["CMD", "curl", "http://localhost:8080/health"]
    46        interval: 5s
    47        timeout: 5s
    48        retries: 10
    49        start_period: 3s