github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/testutil/docker-compose-pg.yaml (about)

     1  version: '3.3'
     2  services:
     3    postgres:
     4      image: postgis/postgis
     5      container_name: postgis
     6      restart: always
     7      volumes:
     8        - ../var/postgres/data:/var/lib/postgresql/data
     9      environment:
    10        POSTGRES_USER: test_user
    11        POSTGRES_PASSWORD: test_passwd
    12      ports:
    13        - "5432:5432"
    14      healthcheck:
    15        test: [ "CMD-SHELL", "pg_isready -U test_user" ]
    16        interval: 5s
    17        timeout: 5s
    18        retries: 5